string wb_get_image_data (int image [int compress4to3])
Returns a string of data containing a copy of the internal true-color representation
of the given image. The image handle must have been obtained with
wb_create_image(), wb_create_mask()
or wb_load_image(). Returns
TRUE on success or FALSE if an error occurs.
If compress4to3 is TRUE, every fourth byte of the original 32-bit data is skipped, yielding a RGB (24-bit) data string. This is required for image libraries such as FreeImage (click here for more information).
This function is useful to read the image pixels directly or to convert an image to another format like PNG, JPEG, or GIF using a foreign library. For more information consult the Windows API documentation.
Example
|
|
See also
wb_create_image
wb_create_mask
wb_load_image
Image functions
Low-level functions