Gdi32BitBlt(SafeHandle, Int32, Int32, Int32, Int32, SafeHandle, Int32, Int32, TernaryRasterOperations) Method

Performs a bit-block transfer of the color data corresponding to a rectangle of pixels from the specified source device context into a destination device context.

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("GDI32.dll")]
public static bool BitBlt(
	SafeHandle hdc,
	int nXDest,
	int nYDest,
	int nWidth,
	int nHeight,
	SafeHandle hdcSrc,
	int nXSrc,
	int nYSrc,
	TernaryRasterOperations dwRop
)

Parameters

hdc  SafeHandle
A handle to the destination device context.
nXDest  Int32
The x-coordinate, in logical units, of the upper-left corner of the destination rectangle.
nYDest  Int32
The y-coordinate, in logical units, of the upper-left corner of the destination rectangle.
nWidth  Int32
The width, in logical units, of the source and destination rectangles.
nHeight  Int32
The height, in logical units, of the source and the destination rectangles.
hdcSrc  SafeHandle
A handle to the source device context.
nXSrc  Int32
The x-coordinate, in logical units, of the upper-left corner of the source rectangle.
nYSrc  Int32
The y-coordinate, in logical units, of the upper-left corner of the source rectangle.
dwRop  TernaryRasterOperations
A raster-operation code. These codes define how the color data for the source rectangle is to be combined with

the color data for the destination rectangle to achieve the final color.

Return Value

Boolean
If the function succeeds, the return value is .

If the function fails, the return value is

To get extended error information, call GetLastWin32Error.

Remarks

See Also