PixelData property (ILEADRaster)

Visual Basic example

Visual C++ 5.0 example

 

Syntax

ILEADRasterVariant *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 object. 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, on the other hand, performs conversions to 24-bit data, which may cause some data loss.

Use the ShortItemValue Property in the ILEADRasterVariant object to get and set the specified pixel in the current bitmap.

See Also

Elements:

Pixel property

Topics:

Raster Images: Getting Current Information