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. 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