pub unsafe extern "C" fn uiImageAppend(
i: *mut uiImage,
pixels: *mut c_void,
pixelWidth: c_int,
pixelHeight: c_int,
byteStride: c_int,
)
Expand description
Appends a new image representation.
@param i uiImage instance.
@param pixels Byte array of premultiplied pixels in [R G B A] order.\n
((uint8_t *) pixels)[0]
equals the R of the first pixel,
[3]
the A of the first pixel.\n
pixels
must be at least byteStride * pixelHeight
bytes long.\n
Data is copied internally. Ownership is not transferred.
@param pixelWidth Width in pixels.
@param pixelHeight Height in pixels.
@param byteStride Number of bytes per row of the pixel array.
@todo see if we either need the stride or can provide a way to get the OS-preferred stride (in cairo we do)
@todo use const void * for const correctness
@memberof uiImage