Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

Search Results for "DeviceContext" in [All]

gdi32

.

static extern TODO DeviceContext(TODO);

.

Declare Function DeviceContext Lib "gdi32.dll" (TODO) As TODO

.
Documentation
[DeviceContext] on MSDN
.

If you are using Graphics as a DeviceContext you can use the DpiX and DpiY attributes. (Julian Taupe)

user32

.

static extern IntPtr GetDCEx(IntPtr hWnd, IntPtr hrgnClip, DeviceContextValues flags);

.

Private Shared Function GetDCEx(ByVal hWnd As IntPtr, ByVal hrgnClip As IntPtr, ByVal DeviceContextValues As DeviceContextValues) As IntPtr

.

Private Declare Function Lib "user32.dll" GetDCEx(ByVal hWnd As IntPtr, ByVal hrgnClip As IntPtr, ByVal DeviceContextValues As DeviceContextValues) As IntPtr

.

DeviceContextValues

.

Specifies how the DC is created. This parameter can be one or more of the DeviceContextValues enumeration.</param>

.

static extern IntPtr GetDCEx(IntPtr hWnd, IntPtr hrgnClip, DeviceContextValues flags);

.

Private Shared Function GetDCEx(ByVal hWnd As IntPtr, ByVal hrgnClip As IntPtr, ByVal DeviceContextValues As Integer) As IntPtr

.

Private Declare Function Lib "user32.dll" GetDCEx(ByVal hWnd As IntPtr, ByVal hrgnClip As IntPtr, ByVal DeviceContextValues As Integer) As IntPtr

.

protected enum DeviceContextValues : uint

.

Specifies how the DC is created. This parameter can be one or more of the DeviceContextValues enumeration.</param>

.

    Dim destDeviceContext As IntPtr = g.GetHdc

.

    Dim srcDeviceContext As IntPtr = GetWindowDC(windowHandle)

.

    BitBlt(destDeviceContext, 0, 0, size.Width, size.Height, _

.

           srcDeviceContext, location.X, location.Y, SRCCOPY)

.

    ReleaseDC(windowHandle, srcDeviceContext)

.

    g.ReleaseHdc(destDeviceContext)

Enums

.

private enum DeviceContextValues : uint

.

Private Enum DeviceContextValues As UInteger

.
Documentation
[DeviceContextValues] on MSDN

 
Access PInvoke.net directly from VS: