LEADTOOLS GDI/GDI+ (Leadtools.Drawing assembly)
LEAD Technologies, Inc

RasterOperation Property






Gets or sets the ROP value.
Syntax
public int RasterOperation {get; set;}
'Declaration
 
Public Property RasterOperation As Integer
'Usage
 
Dim instance As RasterPaintProperties
Dim value As Integer
 
instance.RasterOperation = value
 
value = instance.RasterOperation
public int RasterOperation {get; set;}
 get_RasterOperation();
set_RasterOperation(value);
public:
property int RasterOperation {
   int get();
   void set (    int value);
}

Property Value

An integer value that represents the ROP value.
Remarks

Used only when PaintEngine is set to RasterPaintEngine.Gdi.

These codes define how the color data for the image is to be combined with the color data for the destination System.Drawing.Graphics to achieve the final color.

The following list shows some common raster operation codes:

Value Description
SourceCopy Copies the source rectangle directly to the destination rectangle
SourcePaint Combines the colors of the source and destination rectangles by using the Boolean OR operator
SourceAnd Combines the colors of the source and destination rectangles by using the Boolean AND operator
SourceInvert Combines the colors of the source and destination rectangles by using the Boolean XOR operator
SourceErase Combines the inverted colors of the destination rectangle with the colors of the source rectangle by using the Boolean AND operator
NotSourceCopy Copies the inverted source rectangle to the destination
NotSourceErase Combines the colors of the source and destination rectangles by using the Boolean OR operator and then inverts the resultant color
MergeCopy Merges the colors of the source rectangle with the brush currently selected in hdcDest, by using the Boolean AND operator
MergePaint Merges the colors of the inverted source rectangle with the colors of the destination rectangle by using the Boolean OR operator
PatternCopy Copies the brush currently selected in hdcDest, into the destination bitmap
PatternPaint Combines the colors of the brush currently selected in hdcDest, with the colors of the inverted source rectangle by using the Boolean OR operator. The result of this operation is combined with the colors of the destination rectangle by using the Boolean OR operator
PatternInvert Combines the colors of the brush currently selected in hdcDest, with the colors of the destination rectangle by using the Boolean XOR operator
DestinationInvert Inverts the destination rectangle
Blackness Fills the destination rectangle using the color associated with index 0 in the physical palette. (This color is black for the default physical palette)

Example
For an example, refer to RasterPaintProperties.
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

RasterPaintProperties Structure
RasterPaintProperties Members

 

 


Products | Support | Contact Us | Copyright Notices

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