Bitmap::Bitmap method

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

width

Type: INT

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

height

Type: INT

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

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

   
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