Gdi32CreateCompatibleBitmap(SafeHandle, Int32, Int32) Method
Creates a bitmap compatible with the device that is associated with the specified 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 IntPtr CreateCompatibleBitmap(
SafeHandle hdc,
int width,
int height
)
<DllImportAttribute("GDI32.dll">]
Public Shared Function CreateCompatibleBitmap (
hdc As SafeHandle,
width As Integer,
height As Integer
) As IntPtr
Dim hdc As SafeHandle
Dim width As Integer
Dim height As Integer
Dim returnValue As IntPtr
returnValue = Gdi32.CreateCompatibleBitmap(hdc,
width, height)
public:
[DllImportAttribute(L"GDI32.dll")]
static IntPtr CreateCompatibleBitmap(
SafeHandle^ hdc,
int width,
int height
)
[<DllImportAttribute("GDI32.dll")>]
static member CreateCompatibleBitmap :
hdc : SafeHandle *
width : int *
height : int -> IntPtr
No code example is currently available or this language may not be supported.
- hdc SafeHandle
-
A handle to the Device Context (DC).
- width Int32
-
The bitmap width, in pixels.
- height Int32
-
The bitmap height, in pixels.
IntPtr
If the function succeeds, the return value is a handle to the compatible bitmap (DDB).
If the function fails, the return value is
Zero.