public Image loadRawImageFromMem(
ubyte* buf,
uint width,
uint height,
ColorSpace color_space,
uint bits_per_component)
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()
Parameters
buf | The pointer to the image data. |
width | The width of an image file. |
height | The height of an image file. |
color_space | the ColorSpace: |
bits_per_component | The bit size of each color component. The valid value is either 1, 2, 4, 8. |
Returns
when loadRawImageFromMem() succeeds, it returns an instance of a Image object. Otherwise, it returns null and error-handler is called