Share via


Surface.Surface(Device,Bitmap,Pool) Constructor (Microsoft.DirectX.Direct3D)

Initializes a new instance of the Surface class.

Definition

Visual Basic Public Sub New( _
    ByVal device As Device, _
    ByVal image As BitmapLeave Site, _
    ByVal pool As Pool _
)
C# public Surface(
    Device device,
    BitmapLeave Site image,
    Pool pool
);
C++ public:
 Surface(
    Devicedevice,
    BitmapLeave Siteimage,
    Pool pool
);
JScript public function Surface(
    device : Device,
    image : BitmapLeave Site,
    pool : Pool
);

Parameters

device Microsoft.DirectX.Direct3D.Device
Reference to the Device associated with the surface.
image System.Drawing.Bitmap
Reference to a BitmapLeave 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.