The pointer to the image data.
The width of an image file.
The height of an image file.
the ColorSpace. deviceGrey, deviceRGB or deviceCMYK are allowed.
The bit size of each color component. The valid value is either 1, 2, 4, 8.
When loadRawImageFromMem() succeeds, it returns an instance of a Image object. Otherwise, it returns null and error-handler is called.
Loads an image which has raw image format from buffer.
This function loads the data without any conversion. So it is usually faster than the other functions. The formats that loadRawImageFromMem() can load is the same as loadRawImageFromFile()