Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 26. Bitmap Programming > Modifying a Bitmap

26.6. Modifying a Bitmap

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)


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial