GdPicture.NET.14
GdPicture14 Namespace / GdViewer Class / GetHdc Method
Example





In This Topic
GetHdc Method
In This Topic
Returns the handle to the device context associated with this GdViewer control.
Syntax
'Declaration
 
Public Function GetHdc() As IntPtr
public IntPtr GetHdc()
public function GetHdc(): IntPtr; 
public function GetHdc() : IntPtr;
public: IntPtr GetHdc(); 
public:
IntPtr GetHdc(); 

Return Value

The handle to the device context.
Example
How to properly manipulate with the handle.
'We assume that the GdViewer1 control has been properly integrated.
Dim myHdc As IntPtr = GdViewer1.GetHdc()
'Do your stuff here.
GdViewer1.ReleaseHdc(myHdc)
//We assume that the GdViewer1 control has been properly integrated.
IntPtr myHdc = GdViewer1.GetHdc();
//Do your stuff here.
GdViewer1.ReleaseHdc(myHdc);
See Also