Bitmap::Bitmap method

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.

Syntax

void Bitmap(
  IN IDirectDrawSurface7 *surface
);

Parameters

surface

Type: IDirectDrawSurface7*

Pointer to an IDrectDrawSurface7 COM interface.

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

Bitmap::FromDirectDrawSurface7

Image

Images, Bitmaps, and Metafiles

Using Images, Bitmaps, and Metafiles