Graphics::Graphics(HDC) method (gdiplusgraphics.h)

Creates a Graphics::Graphics object that is associated with a specified device context.

Syntax

void Graphics(
  HDC hdc
);

Parameters

hdc

Handle to a device context that will be associated with the new Graphics::Graphics object.

Return value

None

Remarks

When you use this constructor to create a Graphics::Graphics object, make sure that the Graphics::Graphics object is deleted or goes out of scope before the device context is released.

Requirements

Requirement Value
Header gdiplusgraphics.h

See also

Changes in the Programming Model

Getting Started

Graphics

Graphics Constructors