Bitmap::Bitmap(INT,INT,Graphics*) method (gdiplusheaders.h)

Creates a Bitmap::Bitmap object based on a Graphics object, a width, and a height.

Syntax

void Bitmap(
  [in] INT      width,
  [in] INT      height,
  [in] Graphics *target
);

Parameters

[in] width

Type: INT

Integer that specifies the width, in pixels, of the bitmap.

[in] height

Type: INT

Integer that specifies the height, in pixels, of the bitmap.

[in] target

Type: Graphics*

Pointer to a Graphics object that contains information used to initialize certain properties (for example, dots per inch) of the new Bitmap::Bitmap object.

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 gdiplusheaders.h (include Gdiplus.h)
Library Gdiplus.lib
DLL Gdiplus.dll

See also

Bitmap

Bitmap Constructors

Graphics

Image

Images, Bitmaps, and Metafiles

Using Images, Bitmaps, and Metafiles