LEADTOOLS (Leadtools assembly)
LEAD Technologies, Inc

UpdateOverlayBits Method






The index of the overlay used in the process.
Flags that determine whether the main image or the overlay image should be updated.
Updates the overlay image pixels with the bits from the corresponding bitplane of the main image. .NET support Silverlight support WinRT support
Syntax
public void UpdateOverlayBits( 
   int index,
   RasterUpdateOverlayBitsFlags flags
)
'Declaration
 
Public Sub UpdateOverlayBits( _
   ByVal index As Integer, _
   ByVal flags As RasterUpdateOverlayBitsFlags _
) 
'Usage
 
Dim instance As RasterImage
Dim index As Integer
Dim flags As RasterUpdateOverlayBitsFlags
 
instance.UpdateOverlayBits(index, flags)
public void UpdateOverlayBits( 
   int index,
   RasterUpdateOverlayBitsFlags flags
)
 function Leadtools.RasterImage.UpdateOverlayBits( 
   index ,
   flags 
)
public:
void UpdateOverlayBits( 
   int index,
   RasterUpdateOverlayBitsFlags flags
) 

Parameters

index
The index of the overlay used in the process.
flags
Flags that determine whether the main image or the overlay image should be updated.
Remarks

The image memory must be locked when you use this method. Normally, you can call Access to lock the memory before starting an operation that uses this method. Then call Release when the operation is finished.

This method can also update the main image's bitplane with the data from the overlay image.

This method is available in the (Document/Medical only) Toolkits.

The overlay at index must have the corresponding bitplane set: otherwise, this method will throw a RasterException with RasterExceptionCode.OverlayIndex. This index is zero-based and should be less than or equal to MaxOverlays.

If RasterUpdateOverlayBitsFlags.FromOverlay is set in flags, the bitplane in the main image will be updated to match the overlay image data. The left and top coordinates for the overlay image are used. If RasterUpdateOverlayBitsFlags.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 RasterUpdateOverlayBitsFlags.Clear is not set, the bits from the bitplane associated with the overlay that are not covered by the overlay image are left unchanged.

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

            OverlayWidth = Image.ImageWidth - OverlayImage.Origin.X
            OverlayHeight = Image.ImageHeight - OverlayImage.Origin.Y
            

For more information, refer to Overlay Overview.

Example
For an example, refer to GetOverlayImage.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

RasterImage Class
RasterImage Members

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.