void bitmap.Invert()
Return Type: void
Parameters: None
Description:
This function inverts the color of each pixel in the bitmap. This is
equivalent to changing the value of each bit in the R,G,B (red, green,
blue) color values for each pixel.
For example:
RGB
Value |
RGB
Inverted |
255
(11111111) |
0 (00000000) |
0 (00000000) |
255
(11111111) |
170
(10101010) |
85 (01010101) |
15 (00001111) |
240
(11110000) |
For an example, see the bitmap variable
page.