Copies a vector of pixel values into an Image Access object.
An Image Access object.
image-access-pixels-from-bgra copies all the pixels to the Image Access object
from the vector
should contain a sequence of integer values in the range 0-255 for blue, green, red and alpha of each pixel. This function is optimized for the case where
has element type
(unsigned-byte 8). If the image has alpha, the values in
An error is signalled if
is not of the correct length for the Image Access object, that is
represent the size of
must be an Image Access object returned by make-image-access.
If you want to use the values in the vector that was filled from an image with alpha in other places, to get the sample color you will need to un-premultiply them, either by hand (divide the color values by the alpha), or by making a RGB color and using color-from-premultiplied.
image-access-transfer-to-image must be called after this function (similarly to
CAPI User Guide and Reference Manual (Macintosh version) - 25 Feb 2015