![]() |
![]() |
![]() |
Surface.FromStream Method |
Language: |
Creates a surface from a Microsoft® .NET stream object.
Visual Basic .NET Public Shared Function FromStream( _
ByVal device As Device, _
ByVal data As Stream, _
ByVal pool As Pool _
) As SurfaceC# public static Surface FromStream(
Device device,
Stream data,
Pool pool
);Managed C++ public: static Surface* FromStream(
Device *device,
Stream *data,
Pool pool
);JScript .NET public static function FromStream(
device : Device,
data : Stream,
pool : Pool
) : Surface;
device Microsoft.DirectX.Direct3D.Device. Reference to the Device associated with the surface. data System.IO.Stream. Reference to a Stream object that contains image data 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.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center