Share via


TextureLoader.ImageInformationFromStream(Stream,Int32) Method (Microsoft.DirectX.Direct3D)

Retrieves information about an image file in memory.

Definition

Visual Basic Public Shared Function ImageInformationFromStream( _
    ByVal sourceStream As StreamLeave Site, _
    ByVal readLength As Integer _
) As ImageInformation
C# public static ImageInformation ImageInformationFromStream(
    StreamLeave Site sourceStream,
    int readLength
);
C++ public:
static ImageInformation ImageInformationFromStream(
    StreamLeave SitesourceStream,
    int readLength
);
JScript public static function ImageInformationFromStream(
    sourceStream : StreamLeave Site,
    readLength : int
) : ImageInformation;

Parameters

sourceStream System.IO.Stream
A StreamLeave Site object containing the image whose information is being retrieved.
readLength System.Int32
The size of the sourceStream data to read.

Return Value

Microsoft.DirectX.Direct3D.ImageInformation
An ImageInformation structure that contains the description of the data in sourceStream.

Remarks

Exceptions

InvalidCallException

The method call is invalid. For example, a method's parameter might contain an invalid value.