Concepts and Definitions

The LEAD control lets you load an image from a file, manipulate it as a bitmap in memory, display it in the control, manipulate the way it is displayed, print the bitmap, and save it to a file.

The following illustrates the fundamental components and their relationships:

image\concept.gif

The bitmap is the image data in memory. The LEAD control references the bitmap. Most LEAD methods that alter an image (such as Grayscale or Rotate) actually alter the bitmap. If you alter a bitmap, the changes you make do not appear in the control until the image repaints. When you save a bitmap, the changes you have made are saved in the file.

The displayed image is the rectangle on the screen that shows all or part of the bitmap. It can be positioned, scaled, and cropped without affecting the image data in memory. For information on the source and destination rectangles that control which part of an image is displayed, refer to Specifying Only the Destination Rectangles, Specifying Both the Source and Destination Rectangles, Specifying the Source Clipping Rectangle and Specifying the Destination Clipping Rectangle. For more information about how to position, scale, and crop an image, refer to Displaying an Image.