TQABitmapNew
A drawing engine must define a method to create a new bitmap.
typedef TQAError (*TQABitmapNew) ( unsigned long flags, TQAImagePixelType pixelType, const TQAImage *image, TQABitmap **newBitmap);
flags- A set of bit flags specifying features of the new bitmap. See "Bitmap Flags Masks" (page 1-64) for complete information
pixelType- The type of pixels in the new bitmap. See "Pixel Types" (page 1-35) for a description of the values you can pass in this parameter.
image- A pixel image to use for the new bitmap. The
widthandheightfields of this image can have any values greater than 0.newBitmap- On entry, the address of a pointer variable. On exit, that variable points to a new bitmap. If a new bitmap cannot be created,
*newBitmapis set to the valueNULL.DESCRIPTION
YourTQABitmapNewfunction is called whenever an application callsQABitmapNew. Your function should perform any tasks required to draw the bitmap in the draw context associated with your drawing engine. This might involve loading the bitmap into memory on the device associated with your drawing engine. If so, yourTQABitmapNewfunction should not return until the bitmap has been completely loaded.The
flagsparameter specifies a set of bitmap features. If thekQABitmap_Lockbit in that parameter is set but your drawing engine cannot guarantee that the bitmap will remain locked in memory, yourTQABitmapNewfunction should return an error.
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help