Leadtools Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
RasterOperation Property
See Also 
Leadtools Namespace > RasterPaintProperties Structure : RasterOperation Property



Gets or sets the ROP value.

Syntax

Visual Basic (Declaration) 
Public Property RasterOperation As Integer
Visual Basic (Usage)Copy Code
Dim instance As RasterPaintProperties
Dim value As Integer
 
instance.RasterOperation = value
 
value = instance.RasterOperation
C# 
public int RasterOperation {get; set;}
C++/CLI 
public:
property int RasterOperation {
   int get();
   void set (int value);
}

Return Value

An integer value that represents the ROP value.

Example

For an example, refer to RasterPaintProperties.

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 Graphics to achieve the final color.

The following list shows some common raster operation codes:
ValueDescription
SourceCopyCopies the source rectangle directly to the destination rectangle
SourcePaintCombines the colors of the source and destination rectangles by using the Boolean OR operator
SourceAndCombines the colors of the source and destination rectangles by using the Boolean AND operator
SourceInvertCombines the colors of the source and destination rectangles by using the Boolean XOR operator
SourceEraseCombines the inverted colors of the destination rectangle with the colors of the source rectangle by using the Boolean AND operator
NotSourceCopyCopies the inverted source rectangle to the destination
NotSourceEraseCombines the colors of the source and destination rectangles by using the Boolean OR operator and then inverts the resultant color
MergeCopyMerges the colors of the source rectangle with the brush currently selected in hdcDest, by using the Boolean AND operator
MergePaintMerges the colors of the inverted source rectangle with the colors of the destination rectangle by using the Boolean OR operator
PatternCopyCopies the brush currently selected in hdcDest, into the destination bitmap
PatternPaintCombines 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
PatternInvertCombines the colors of the brush currently selected in hdcDest, with the colors of the destination rectangle by using the Boolean XOR operator
DestinationInvertInverts the destination rectangle
BlacknessFills the destination rectangle using the color associated with index 0 in the physical palette. (This color is black for the default physical palette)

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also