Set the image data from a buffer.
In case of failure, false
is returned and error
is set.
this |
An Image |
data |
Image data |
pixel_format |
The PixelFormat of the buffer |
width |
Width in pixels of image data. |
height |
Height in pixels of image data |
rowstride |
Distance in bytes between row starts. |
|