PixelData property (Main Control)

Visual Basic example
Visual C++ 4.0 example

Syntax VARIANT PixelData (float x, float y);

Overview:  Refer to Examining and Altering Bitmaps

Remarks

Gets or sets the value of the specified pixel in the current bitmap. This property is similar to the Pixel property.

The position specified by x and y is relative to the bitmap in the control. The unit of measure is determined by the ScaleMode property.

This property differs from the Pixel property in that the pixel data contained in this property is not converted to a color. The data contained in this property is exactly as it is in the bitmap, with no conversions made. This is designed to preserve all the data associated with a pixel. For example, for bitmaps those contain alpha channel information, that information is preserved in this property.

In addition, this property actually manipulates 48 and 64-bit data for 48 or 64-bit bitmaps. The Pixel property however, performs conversions to 24-bit data, which causes some data loss.

See Also

Elements:  Pixel property

Topics:  Raster Images: Getting Current Information