Surface Constructor
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Initializes a new instance of the Surface class.
Namespace: Microsoft.WindowsMobile.DirectX.Direct3D
Assembly: Microsoft.WindowsMobile.DirectX (in Microsoft.WindowsMobile.DirectX.dll)
Syntax
'Declaration
Public Sub New ( _
device As Device, _
image As Bitmap, _
pool As Pool _
)
'Usage
Dim device As Device
Dim image As Bitmap
Dim pool As Pool
Dim instance As New Surface(device, _
image, pool)
public Surface(
Device device,
Bitmap image,
Pool pool
)
public:
Surface(
Device^ device,
Bitmap^ image,
Pool pool
)
new :
device:Device *
image:Bitmap *
pool:Pool -> Surface
Parameters
- device
Type: Microsoft.WindowsMobile.DirectX.Direct3D.Device
Reference to the Device associated with the surface.
- image
Type: System.Drawing.Bitmap
Reference to a Bitmap object that contains the bitmap for the surface.
- pool
Type: Microsoft.WindowsMobile.DirectX.Direct3D.Pool
A Pool object that defines the memory class of the surface.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
Platforms
Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Version Information
.NET Compact Framework
Supported in: 3.5, 2.0