Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Bitmap.Bitmap(INT, INT, PixelFormat) constructor

Applies to: desktop apps only

Creates a Bitmap::Bitmap object of a specified size and pixel format. The pixel data must be provided after the Bitmap::Bitmap object is constructed.

Syntax

Bitmap(
  [in]  INT width,
  [in]  INT height,
  [in]  PixelFormat format
);

Parameters

width [in]

Type: INT

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

height [in]

Type: INT

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

format [in]

Type: PixelFormat

Optional. Integer that specifies the pixel format of the bitmap. The PixelFormat data type and constants that represent various pixel formats are defined in Gdipluspixelformats.h. For more information about pixel format constants, see Image Pixel Format Constants. The default value is PixelFormat32bppARGB.

Requirements

Minimum supported client

Windows XP, Windows 2000 Professional

Minimum supported server

Windows 2000 Server

Product

GDI+ 1.0

Header

Gdiplusheaders.h (include Gdiplus.h)

Library

Gdiplus.lib

DLL

Gdiplus.dll

See also

Bitmap
Bitmap Constructors
Image
Image Pixel Format Constants
Using Images, Bitmaps, and Metafiles
Images, Bitmaps, and Metafiles

 

 

Send comments about this topic to Microsoft

Build date: 3/6/2012

Community Additions

Show: