![]() |
![]() |
![]() |
Surface.FromBitmap Method |
Language: |
Creates a surface from a Microsoft .NET bitmap object.
Visual Basic Public Shared Function FromBitmap( _
ByVal device As Device, _
ByVal image As Bitmap, _
ByVal pool As Pool _
) As SurfaceC# public static Surface FromBitmap(
Device device,
Bitmap image,
Pool pool
);C++ public:
static Surface^ FromBitmap(
Device^ device,
Bitmap^ image,
Pool pool
);JScript public static function FromBitmap(
device : Device,
image : Bitmap,
pool : Pool
) : Surface;
device Microsoft.DirectX.Direct3D.Device
Reference to the Device associated with the surface.image System.Drawing.Bitmap
Reference to a Bitmapobject that contains the bitmap for the surface.
pool Microsoft.DirectX.Direct3D.Pool
A Pool object that defines the memory class of the surface.
Microsoft.DirectX.Direct3D.Surface
A Surface object that represents the newly created surface.
Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center