Bitmap.Bitmap(IDirectDrawSurface7*) constructor

Applies to: desktop apps only

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

Bitmap(
  [in]  IDirectDrawSurface7* surface
);

Parameters

  • surface [in]
    Type: IDirectDrawSurface7*

    Pointer to an IDrectDrawSurface7 COM interface.

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

Bitmap::FromDirectDrawSurface7

Image

Using Images, Bitmaps, and Metafiles

Images, Bitmaps, and Metafiles

 

 

Send comments about this topic to Microsoft

Build date: 3/6/2012