Skip to content

Latest commit

 

History

History
116 lines (77 loc) · 4.05 KB

nf-gdiplusgraphics-graphics-fromhdc(hdc_handle).md

File metadata and controls

116 lines (77 loc) · 4.05 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist req.product ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:gdiplusgraphics.Graphics.FromHDC(HDC,HANDLE)
Graphics::FromHDC(IN HDC,IN HANDLE) (gdiplusgraphics.h)
The Graphics::FromHDC method creates a Graphics object that is associated with a specified device context and a specified device.
FromHDC
FromHDC method [GDI+]
FromHDC method [GDI+]
Graphics class
Graphics class [GDI+]
FromHDC method
Graphics.FromHDC
Graphics.FromHDC(HDD
HANDLE)
Graphics.FromHDC(IN HDC
IN HANDLE)
Graphics::FromHDC
Graphics::FromHDC(IN HDC
IN HANDLE)
_gdiplus_CLASS_Graphics_FromHDC_hdc_hdevice_
gdiplus._gdiplus_CLASS_Graphics_FromHDC_hdc_hdevice_
gdiplus\_gdiplus_CLASS_Graphics_FromHDC_hdc_hdevice_.htm
gdiplus
VS|gdicpp|~\gdiplus\gdiplusreference\classes\graphicsclass\graphicsmethods\graphicsfromhdcmethods\fromhdc_9hdc_hdevice.htm
12/05/2018
FromHDC, FromHDC method [GDI+], FromHDC method [GDI+],Graphics class, Graphics class [GDI+],FromHDC method, Graphics.FromHDC, Graphics.FromHDC(HDD,HANDLE), Graphics.FromHDC(IN HDC,IN HANDLE), Graphics::FromHDC, Graphics::FromHDC(IN HDC,IN HANDLE), _gdiplus_CLASS_Graphics_FromHDC_hdc_hdevice_, gdiplus._gdiplus_CLASS_Graphics_FromHDC_hdc_hdevice_
gdiplusgraphics.h
Gdiplus.h
Windows
Windows XP, Windows 2000 Professional [desktop apps only]
Windows 2000 Server [desktop apps only]
Gdiplus.lib
Gdiplus.dll
Windows
GDI+ 1.0
19H1
Graphics::FromHDC
gdiplusgraphics/Graphics::FromHDC
c++
APIRef
kbSyntax
COM
Gdiplus.dll
Graphics.FromHDC

Graphics::FromHDC(IN HDC,IN HANDLE)

-description

The Graphics::FromHDC method creates a Graphics object that is associated with a specified device context and a specified device.

-parameters

-param hdc [in]

Type: HDD

Handle to the device context that is associated with the new Graphics object.

-param hdevice [in]

Type: HANDLE

Handle to a device that is associated with the new Graphics object.

-returns

Type: Graphics*

This method returns a pointer to the new Graphics object.

-remarks

When you use this method to create a Graphics object, make sure that the Graphics object is deleted before the device context is released.

-see-also

Changes in the Programming Model

FromHDC Methods

Graphics

Graphics Constructors

Graphics::FromHWND

Graphics::FromImage

Graphics::GetHDC

Optimizing Printing by Providing a Printer Handle