CreateCompatibleDC (gdi32)
Last changed: -74.212.46.220

.
Summary
The CreateCompatibleDC function creates a memory device context (DC) compatible with the specified device.

C# Signature:

[DllImport("gdi32.dll")]
static extern IntPtr CreateCompatibleDC(IntPtr hdc);

User-Defined Types:

None.

Notes:

None.

Tips & Tricks:

If you pass NULL, or zero, to this function you'll get the screen device context.

Sample Code:

Please see BitBlt

Alternative Managed API:

Do you know one? Please contribute it!

Documentation