InkRasterOperation Enumeration
InkRasterOperation Enumeration |
Defines values for performing raster operations on drawn ink.
Declaration
[C++]
typedef enum InkRasterOperation {
IRO_Black = 1,
IRO_NotMergePen = 2,
IRO_MaskNotPen = 3,
IRO_NotCopyPen = 4,
IRO_MaskPenNot = 5,
IRO_Not = 6,
IRO_XOrPen = 7,
IRO_NotMaskPen = 8,
IRO_MaskPen = 9,
IRO_NotXOrPen = 10,
IRO_NoOperation = 11,
IRO_MergeNotPen = 12,
IRO_CopyPen = 13,
IRO_MergePenNot = 14,
IRO_MergePen = 15,
IRO_White = 16
} InkRasterOperation;
[Microsoft® Visual Basic® 6.0]
Enum InkRasterOperation
IRO_Black = 1
IRO_NotMergePen = 2
IRO_MaskNotPen = 3
IRO_NotCopyPen = 4
IRO_MaskPenNot = 5
IRO_Not = 6
IRO_XOrPen = 7
IRO_NotMaskPen = 8
IRO_MaskPen = 9
IRO_NotXOrPen = 10
IRO_NoOperation = 11
IRO_MergeNotPen = 12
IRO_CopyPen = 13
IRO_MergePenNot = 14
IRO_MergePen = 15
IRO_White = 16
End Enum
Members
The following tables list the enumeration values.
Name | Description |
---|---|
Black | Specifies black pen color. |
NotMergePen | Specifies the inverse of MergePen. |
MaskNotPen | Specifies a combination of the colors that are common to the background color and the inverse of the pen. |
NotCopyPen | Specifies the inverse of CopyPen. |
MakePenNot | Specifies a combination of the colors that are common to both the pen and the inverse of the display. |
Not | Specifies the inverse of the display color. |
XOrPen | Specifies a combination of the colors in the pen and in the display color, but not in both. |
NotMaskPen | Specifies the inverse of MaskPen. |
MaskPen | Specifies a combination of the colors that are common to both the pen and the display. |
NotXOrPen | Specifies an inverse of XOrPen. |
NoOperation | Specifies no operation; the output remains unchanged. |
MergeNotPen | Specifies a combination of the display color and the inverse of the pen color. |
CopyPen | Specifies the pen color.
This is the default value. |
MergePenNot | Specifies a combination of the pen color and the inverse of the display color. |
MergePen | Specifies a combination of the pen color and the display color. |
White | Specifies a white pen color. |
Remarks
Use these values to set the value for the RasterOperation drawing attribute. Any object with a DrawingAttributes property can have this value set.
Note: Many printers do not support many of the available raster operations. Because of this, the colors you see on the display may be different from the colors that you would see if they were printed on paper. This is directly related to the printer drivers or printer hardware. You may need to experiment to determine which printers can produce the correct output when various raster operations are set on ink.
When the RasterOperation value is set to anything other than CopyPen, all drawing attributes (anti-aliasing, smoothing, transparency, and pressure) are ignored.