pixel_to_vec(COLOR* color,var alpha,var format,var pixel);
Retrieves the color and alpha values from a pixel in a given format.
Parameters:
color
a BGR color vector to receive the pixel colors.
alpha
a variable to receive the pixel transparency, or NULL.
format
the pixel format: 565, 888, 1555, 4444, or 8888.
pixel
the pixel to be converted.
Speed:
Fast
Example:
pixel_to_vec(temp,alpha,8888,pixel);
See also:
pixel_for_vec