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.FromDirectDrawSurface7 method

Applies to: desktop apps only

The Bitmap::FromDirectDrawSurface7 method creates a Bitmap object based on a DirectDraw surface. The Bitmap object maintains a reference to the DirectDraw surface until the Bitmap object is deleted.

Syntax

static Bitmap* FromDirectDrawSurface7(
  [in]  IDirectDrawSurface7* surface
);

Parameters

surface [in]

Type: IDirectDrawSurface7*

Pointer to an IDirectDraw7 COM interface.

Return value

Type:

Type: Bitmap*

This method returns a pointer to the new Bitmap object.

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
Using Images, Bitmaps, and Metafiles
Images, Bitmaps, and Metafiles

 

 

Send comments about this topic to Microsoft

Build date: 3/6/2012

Community Additions

Show: