UnmanagedImageSetPixel Method (Int32, Int32, Byte) |
Namespace: Accord.Imaging
The method sets all color components of the pixel to the specified value. If it is a grayscale image, then pixel's intensity is set to the specified value. If it is a color image, then pixel's R/G/B components are set to the same specified value (if an image has alpha channel, then it is set to maximum value - 255 or 65535).
Note |
---|
For images having 16 bpp per color plane, the method extends the specified color value to 16 bit by multiplying it by 256. |