UpdateOverlayBits method (ILEADRasterProcess)

Visual Basic example

Visual C++ 6.0 example

 

Syntax

short UpdateOverlayBits(ILEADRaster *pRaster, short iIndex, long lFlags);

Overview

Refer to Overlays Overview.

Remarks

(Medical only) Updates the overlay bitmap pixels with the bits from the corresponding bitplane of the main bitmap. It can also update the main bitmap’s bitplane with the data from the overlay bitmap.

The method will only work for grayscale 8, 12 or 16-bit bitmaps. Support for 12 and 16-bit bitmaps is only in the Document/Medical toolkits.

If SETOVERLAYBITS_FROMOVERLAY is set in lFlags, the bitplane in the main bitmap will be updated to match the overlay bitmap data. The left and top coordinates for the overlay bitmap are used. If SETOVERLAYBITS_CLEAR is set, the bits from the bitplane associated with the overlay are set to 0 if they are not covered by the overlay. If SETOVERLAYBITS_CLEAR is not set, the bits from the bitplane associated with the overlay that are not covered by the overlay bitmap are left unchanged.

If SETOVERLAYBITS_FROMBITMAP is set, the overlay bitmap will be updated with the bits from the corresponding bitplane. The size of the overlay bitmap is unchanged if it has ever been set. If the overlay bitmap has never been set, the overlay bitmap will be from left, top coordinate to the bottom-right corner of the bitmap:

See Also

Elements:

Size method, Resize event, GetOverlayCount method, OverlayAttributes property, GetOverlayAttributes method, GetOverlayBitmap method, SetOverlayAttributes method, SetOverlayBitmap method, OriginX property, OriginY property, Color property, Flags property, BitPosition property, Rows property, Columns property, Type property, BitsAllocated property, Description property, Subtype property, Label property, ROIMean property, ROIArea property, ROIStandardDeviation property, NumberFramesInOverlay property, ActivationLayer property

Topics:

Raster Images: Combining Images