Microsoft DirectX 9.0 SDK Update (October 2004)

Surface.Surface Constructor

Language:

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

Initializes a new instance of the Surface class.

Definition

Visual Basic .NET Public Sub New( _
    ByVal device As Device, _
    ByVal data As Stream, _
    ByVal pool As Pool _
)
C# public Surface(
    Device device,
    Stream data,
    Pool pool
);
Managed C++ public: Surface(
    Device *device,
    Stream *data,
    Pool pool
);
JScript .NET public function Surface(
    device : Device,
    data : Stream,
    pool : Pool
);

Parameters

device Microsoft.DirectX.Direct3D.Device. Reference to the Device associated with the surface.
data System.IO.Stream. Reference to a Stream Leave Site object that contains image data for the surface.
pool Microsoft.DirectX.Direct3D.Pool. A Pool object that defines the memory class of the 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