|
Graphic Buffers help
Graphic buffers help you to store graphic data in memory.
Real API_GB_Create (Real Width, Real Height);
This function creates a new graphic buffer.
Return value:
Returns the graphic buffer handle if succeeded, or false (0) otherwise.
Real API_GB_Delete (Real Graphic Buffer Handle);
This function deletes a graphic buffer from the memory
Return value:
Always returns 1.
Real API_GB_GetDC (Real Graphic Buffer Handle);
This function gets the Device Context handle of a grapic buffer.
You can use this DC on the drawing functions to draw on this buffer.
Return value:
Returns the Device Context handle.
Real API_GB_GetBitmap (Real Graphic Buffer Handle);
This function returns the bitmap resource handle from the graphic buffer.
Return value:
Returns the bitmap resource handle.
Real API_GB_CreateIcon (Real Graphic Buffer Handle);
This function creates an icon from the graphic buffer.
Return value:
Returns the icon resource handle.
Real API_GB_CreateBrush (Real Graphic Buffer Handle);
This function creates a brush from the graphic buffer.
Return value:
Returns the brush resource handle.
Example code:
GbGradient = API_GB_Create (16,16);
DcGradient = API_GB_GetDC (GbGradient);
API_Draw_Gradient (DcGradient,0,0,16,16,0,c_yellow,c_lime);
IcSystray = API_GB_CreateIcon (GbSystray);
|
Return to help index
|
|
|
|