Microsoft DirectX 9.0 SDK Update (October 2004)

Surface.FromBitmap Method

Language:

Note: This documentation is preliminary and is subject to change.

Creates a surface from a Microsoft® .NET bitmap object.

Definition

Visual Basic .NET Public Shared Function FromBitmap( _
    ByVal device As Device, _
    ByVal image As Bitmap, _
    ByVal pool As Pool _
) As Surface
C# public static Surface FromBitmap(
    Device device,
    Bitmap image,
    Pool pool
);
Managed C++ public: static Surface* FromBitmap(
    Device *device,
    Bitmap *image,
    Pool pool
);
JScript .NET public static function FromBitmap(
    device : Device,
    image : Bitmap,
    pool : Pool
) : Surface;

Parameters

device Microsoft.DirectX.Direct3D.Device. Reference to the Device associated with the surface.
image System.Drawing.Bitmap. Reference to a Bitmap Leave Site object that contains the bitmap for the surface.
pool Microsoft.DirectX.Direct3D.Pool. A Pool object that defines the memory class of the surface.

Return Value

Microsoft.DirectX.Direct3D.Surface . A Surface object that represents the newly created surface.


© 2004 Microsoft Corporation. All rights reserved. Terms of use.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center