TCanvas.CopyMode
Indicates the raster operation used to combine pixel colors on the drawing surface.
Declaration
Source position: graphics.pp line 1181
published property TCanvas.CopyMode : TCopymode read FCopyMode write FCopyMode default cmSrcCopy; |
Description
CopyMode is a TCopyMode property which contains the ternary raster operation used to combine pixel colors in region transfers. CopyMode contains values from constants defined for the raster operations, and includes:
- cmBlackness
- Fills the destination rectangle with the first color in the physical palette. (Black for the default palette).
- cmDstInvert
- Inverts colors in the destination rectangle.
- cmMergeCopy
- Merges colors from the source rectangle with the brush color.
- cmMergePaint
- Merges inverted colors from the source rectangle with the colors in the destination rectangle using an OR operation.
- cmNotSrcCopy
- Copies inverted colors from the source rectangle to the destination rectangle.
- cmNotSrcErase
- Combines the colors from the source and destination rectangles using an OR operation, and inverts the result.
- cmPatCopy
- Copies the brush into the destination rectangle.
- cmPatInvert
- Combines the brush colors with the colors in the destination rectangle using an XOR operation.
- cmPatPaint
- Combines the brush colors with the inverted colors from the source rectangle using an OR operation, and combines the result with the colors in the destination rectangle using an OR operation.
- cmSrcAnd
- Combines colors from the source and destination rectangles using an AND operation.
- cmSrcCopy
- Copies the source rectangle to the destination rectangle.
- cmSrcErase
- Combines the inverted colors in the destination rectangle with the colors from the source rectangle using an AND operation.
- cmSrcInvert
- Combines the colors in the source and destination rectangles using an XOR operation.
- cmSrcPaint
- Combines the colors in the source and destination rectangles using an OR operation.
- cmWhiteness
- Fills the destination rectangle using the second color in the physical palette. (White for the default palette).
The default value for the property is cmSrcCopy.
Copy mode constants are not provided for the CAPTUREBLT and NOMIRRORBITMAP values used in the Windows GDI API.
Version 3.2 |
Generated 2024-02-25 |
Home |