GetBitmapStatisticsInfo Method (ILEADRasterProcess)

Visual Basic example

Visual C++ 5.0 example

 

Syntax

short GetBitmapStatisticsInfo (ILEADRaster* pMaskRaster, ChannelConstants Channel, long lStart, long lEnd)

Overview

Refer to Bitmaps and Bitmap Lists

Remarks

(Raster Pro and above toolkits) Calculates statistical information about the bitmap.

The lStart and lEnd parameters designate the range of colors that will be taken in consideration for producing the results. Only the values between lStart and lEnd are used for the calculation of the results. The range of each one depends on the bits per pixel of the bitmap: in the case of 8 bits per component (RGB), the range is between 0 and 255; for 16 bits, the range is 0 through 65535; and for 12 bits, the range is 0 through 4095.

This method updates the following properties:

BitmapMean property

BitmapMedian property

BitmapMaxValue property

BitmapMaxValue property

BitmapSelectedPixelPercent property

BitmapPixelsCount property

BitmapTotalPixelCount property

BitmapStandardDeviation property

Support for 12 and 16-bit grayscale and 48 and 64-bit color images is available only in the Document/Medical toolkits.

This method does not support signed data images. It returns the error code ERROR_SIGNED_DATA_NOT_SUPPORTED if a signed data image is passed to this method.

See Also

Elements:

BitmapMean property, BitmapMedian property, BitmapMaxValue property, BitmapMaxValue property, BitmapSelectedPixelPercent property, BitmapPixelsCount property, BitmapTotalPixelCount property, BitmapStandardDeviation property

Topics:

Raster Images: Getting Current Information