Graphics::Graphics(HWND,BOOL) method (gdiplusgraphics.h)

Creates a Graphics::Graphics object that is associated with a specified window.

Syntax

void Graphics(
  [in] HWND hwnd,
  [in] BOOL icm
);

Parameters

[in] hwnd

Type: HWND

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

[in] icm

Type: BOOL

Optional. Boolean value that specifies whether the new Graphics::Graphics object applies color adjustment according to the ICC profile associated with the display device. TRUE specifies that color adjustment is applied, and FALSE specifies that color adjustment is not applied. The default value is FALSE.

Return value

None

Requirements

Requirement Value
Minimum supported client Windows XP, Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header gdiplusgraphics.h (include Gdiplus.h)
Library Gdiplus.lib
DLL Gdiplus.dll

See also

Changes in the Programming Model

Getting Started

Graphics

Graphics Constructors