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 constructors

This topic lists the constructors of the Bitmap class. For a complete class listing, see Bitmap Class.

Overload list

ConstructorDescription
Bitmap(HICON)

Creates a Bitmap object based on an icon.

Bitmap(WCHAR*,BOOL)

Creates a Bitmap::Bitmap object based on an image file.

Bitmap(IStream*,BOOL)

Creates a Bitmap::Bitmap object based on an IStream COM interface.

Bitmap(HBITMAP,HPALETTE)

Creates a Bitmap::Bitmap object based on a handle to a Windows GDI bitmap and a handle to a GDI palette.

Bitmap(HINSTANCE,WCHAR*)

Creates a Bitmap::Bitmap object based on an application or DLL instance handle and the name of a bitmap resource.

Bitmap(BITMAPINFO*,VOID*)

Creates a Bitmap::Bitmap object based on a BITMAPINFO structure and an array of pixel data.

Bitmap(INT,INT,Graphics*)

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

Bitmap(INT,INT,PixelFormat)

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.

Bitmap(IDirectDrawSurface7*)

Creates a Bitmap::Bitmap object based on a DirectDraw surface. The Bitmap::Bitmap object maintains a reference to the DirectDraw surface until the Bitmap::Bitmap object is deleted or goes out of scope.

Bitmap(INT,INT,INT,PixelFormat,BYTE*)

Creates a Bitmap::Bitmap object based on an array of bytes along with size and format information.

 

 

Send comments about this topic to Microsoft

Build date: 3/6/2012

Community Additions

Show: