Share via


Surface.FromStream(Device,Stream,Pool) Method (Microsoft.DirectX.Direct3D)

Creates a surface from a Microsoft .NET stream object.

Definition

Visual Basic Public Shared Function FromStream( _
    ByVal device As Device, _
    ByVal data As StreamLeave Site, _
    ByVal pool As Pool _
) As Surface
C# public static Surface FromStream(
    Device device,
    StreamLeave Site data,
    Pool pool
);
C++ public:
static SurfaceFromStream(
    Devicedevice,
    StreamLeave Sitedata,
    Pool pool
);
JScript public static function FromStream(
    device : Device,
    data : StreamLeave Site,
    pool : Pool
) : Surface;

Parameters

device Microsoft.DirectX.Direct3D.Device
Reference to the Device associated with the surface.
data System.IO.Stream
Reference to a StreamLeave 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.

Return Value

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