Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
The basic tools for assigning new colors to the pixels of an existing bitmap exactly mirror those for examining a bitmap. They are: setPixel32( ), setPixel( ), and setPixels( ). The setPixel32( ) method assigns a new 4-channel color value to a pixel as a 32-bit unsigned integer. It takes the following form:
thatBitmapDataObject.setPixel32(x, y, color)