[Overview][Types][Procedures and functions][Variables][Index] |
Copies a section of a Canvas to another one, performing a raster operation (ROP).
Source position: winapih.inc line 39
function BitBlt( |
DestDC: HDC; |
X: Integer; |
Y: Integer; |
Width: Integer; |
Height: Integer; |
SrcDC: HDC; |
XSrc: Integer; |
YSrc: Integer; |
Rop: DWORD |
):Boolean; |
DestDC |
|
The destination Device Context. |
X |
|
The origin in the destination DC. |
Y |
|
The origin in the destination DC. |
Width |
|
The image size. |
Height |
|
The image size. |
SrcDC |
|
The source Device Context. |
XSrc |
|
The origin in the source DC. |
YSrc |
|
The origin in the source DC. |
Rop |
|
The raster operation. |
False on failure.
This routine implements the equivalent Windows GDI API of the same name in all platforms supported by Lazarus. It copies a section of a Canvas to another one, without any stretching. It allows one to select the kind of operation which should be performed to draw the pixels into the destination in the parameter ROP. Allowed operations go from simply copying the pixels without change to inverting them and also to executing logical operations involving the source pixels and the previously existing pixels in the destination Canvas.
For normal usage one should only use SRCOPY in the ROP parameter, other operations may not be supported by all widgetsets.
There exist 16 raster operations, according to the possible combinations of two (boolean) values. Excluding the NOP case, that doesn't modify the target area, the possible values for ROP are:
These flags can be added to above ROPs:
|
Ternary raster operation (Dst op Src op Pattern): Fills the destination area with all black. |
|
|
Ternary raster operation (Dst op Src op Pattern): Fills the destination area with (not Dst). |
|
|
Ternary raster operation (Dst op Src op Pattern): Fills the destination area with (Src and Pattern). |
|
|
Ternary raster operation (Dst op Src op Pattern): Fills the destination area with (Dst or not Src). |
|
|
Ternary raster operation (Dst op Src op Pattern): Fills the destination area with (not Src). |
|
|
Ternary raster operation (Dst op Src op Pattern): Fills the destination area with (not (Dst or Src)). |
|
|
Ternary raster operation (Dst op Src op Pattern): Fills the destination area with (Dst xor Pattern). |
|
|
Ternary raster operation (Dst op Src op Pattern): Fills the destination area with (Dst or (not Src) or Pattern). |
|
|
Ternary raster operation (Dst op Src op Pattern): Fills the destination area with (Dst and Src). |
|
|
Ternary raster operation (Dst op Src op Pattern): Fills the destination area with Src. |
|
|
Ternary raster operation (Dst op Src op Pattern): Fills the destination area with ((not Dst) and Src). |
|
|
Ternary raster operation (Dst op Src op Pattern): Fills the destination area with (Dst xor Src). |
|
|
Ternary raster operation (Dst op Src op Pattern): Fills the destination area with (Dst or Src). |
|
|
Ternary raster operation (Dst op Src op Pattern): Fills the destination area with all white. |
Version 3.2 | Generated 2024-02-25 | Home |