To display a bitmap, the copyPlane:gc:srcX:srcY:width:height:destX:destY:plane: method is used instead of
copyArea:, which is used to copy between drawables having the same depth. Like
copyArea:,
copyPlane: specifies the destination drawable, the source rectangle, and the destination point. It has an extra argument that specifies which plane of the source drawable to use. When displaying bitmaps, this argument should have a value of 1.
Unlike copyArea: which copies pixel values directly between the source and destination drawables,
copyPlane: expands the monochrome source bitmap to color before performing the copy. Each pixel is copied as follows: If the source pixel value is 1, the foreground pixel value in the GC is combined with the destination pixel value using the GC function, and the resulting pixel value is set in the destination. If the source pixel value is 0, the background pixel value in the GC is combined with the destination pixel value using the GC function, and the resulting pixel value is set in the destination.