Data and characteristics of an image
typedef struct PhImage
{
int type;
ulong_t image_tag;
int bpl;
PhDim_t size;
ulong_t palette_tag;
int colors;
int xscale;
int yscale;
char format;
char flags;
char ghost_bpl;
char spare1;
char *ghost_bitmap;
int mask_bpl;
char *mask_bm;
PgColor_t *palette;
char *image;
} PhImage_t;
The PhImage_t structure describes the data and characteristics of an image. When you give an image to a PtLabel subclass widget, this is the structure you must provide. To get a pointer to this structure, use PxLoadImage(). To free the allocated members of this structure, call PhReleaseImage().
The structure contains at least the following members:
This tag is filled in automatically for images created in PhAB or by PxLoadImage(). If you're creating an image in some other way, you should fill in the tag by calling PxCRC(), passing it the image pixel data and the size of that data.
The freeing is done automatically by widgets if these bits are set. Calling PhReleaseImage() with an image frees any resources that have the corresponding bit set in the image flags.
Photon
ApGetImageRes(), PgDrawPhImagemx(), PhMakeGhostBitmap(), PhMakeTransBitmap(), PhReleaseImage(), PmMemCreateMC(), PmMemFlush(), PxLoadImage()