Gdi32BitBlt(IntPtr, Int32, Int32, Int32, Int32, IntPtr, 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.
Namespace: DevCase.Win32.NativeMethodsAssembly: 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(
IntPtr hdc,
int nXDest,
int nYDest,
int nWidth,
int nHeight,
IntPtr hdcSrc,
int nXSrc,
int nYSrc,
TernaryRasterOperations dwRop
)
<DllImportAttribute("GDI32.dll">]
Public Shared Function BitBlt (
hdc As IntPtr,
nXDest As Integer,
nYDest As Integer,
nWidth As Integer,
nHeight As Integer,
hdcSrc As IntPtr,
nXSrc As Integer,
nYSrc As Integer,
dwRop As TernaryRasterOperations
) As Boolean
Dim hdc As IntPtr
Dim nXDest As Integer
Dim nYDest As Integer
Dim nWidth As Integer
Dim nHeight As Integer
Dim hdcSrc As IntPtr
Dim nXSrc As Integer
Dim nYSrc As Integer
Dim dwRop As TernaryRasterOperations
Dim returnValue As Boolean
returnValue = Gdi32.BitBlt(hdc, nXDest,
nYDest, nWidth, nHeight, hdcSrc, nXSrc,
nYSrc, dwRop)
public:
[DllImportAttribute(L"GDI32.dll")]
static bool BitBlt(
IntPtr hdc,
int nXDest,
int nYDest,
int nWidth,
int nHeight,
IntPtr hdcSrc,
int nXSrc,
int nYSrc,
TernaryRasterOperations dwRop
)
[<DllImportAttribute("GDI32.dll")>]
static member BitBlt :
hdc : IntPtr *
nXDest : int *
nYDest : int *
nWidth : int *
nHeight : int *
hdcSrc : IntPtr *
nXSrc : int *
nYSrc : int *
dwRop : TernaryRasterOperations -> bool
No code example is currently available or this language may not be supported.
- hdc IntPtr
-
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 IntPtr
-
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.
Boolean
If the function succeeds, the return value is
.
If the function fails, the return value is
To get extended error information, call
GetLastWin32Error.