TypeServer needs to know where you want rasterized text to be drawn. TypeServer can draw either to an existing bitmap, such as a video frame buffer or an off-screen local memory bitmap previously created by your program, or can dynamically create a new bitmap that your application can also access. Two constructors are provided for defining bitmaps: a basic constructor that handles most standard bitmap formats, and an advanced constructor for defining unique or special-case bitmap formats. Here are the C++ prototypes for the two bitmap constructors:
The basic constructor is easy to use and works with most standard bitmap formats. Here is how we define a bitmap for TypeServer use:
The above example defines a 256-color, 8 bit-per-pixel bitmap that is 1024 pixels wide and 768 pixels high. Since we passed a NULL pointer for the bitmap surface, the constructor will also dynamically allocate a new bitmap surface for us in local memory. To define an existing bitmap, pass the "surface" pointer with the starting address of the frame buffer in memory. The "advanced" bitmap constructor uses a bitmap information structure, MGBITMAPINFO, that allows you to define special or unique bitmap formats. Home | Products | Order | Register | Support | Company | Contact | Feedback Copyright © 1999-2001 - Metagraphics Software Corporation. |