IDeviceContext Interface
.NET Framework (current version)
Defines methods for obtaining and releasing an existing handle to a Windows device context.
Assembly: System.Drawing (in System.Drawing.dll)
| Name | Description | |
|---|---|---|
![]() | Dispose() | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.(Inherited from IDisposable.) |
![]() | GetHdc() | Returns the handle to a Windows device context. |
![]() | ReleaseHdc() | Releases the handle of a Windows device context. |
A device context defines the graphics object for drawing on a Windows-based device. An example of a class that implements the IDeviceContext interface is the Graphics class.
.NET Framework
Available since 2.0
Available since 2.0
Show:
