TextureLoader.ImageInformationFromStream(Stream) Method (Microsoft.DirectX.Direct3D)
Retrieves information about an image file in memory.
Definition
Visual Basic Public Shared Function ImageInformationFromStream( _
ByVal sourceStream As Stream _
) As ImageInformationC# public static ImageInformation ImageInformationFromStream(
Stream sourceStream
);C++ public:
static ImageInformation ImageInformationFromStream(
Stream^ sourceStream
);JScript public static function ImageInformationFromStream(
sourceStream : Stream
) : ImageInformation;
Parameters
sourceStream System.IO.Stream
A Stream object containing the image whose information is being retrieved.
Return Value
Microsoft.DirectX.Direct3D.ImageInformation
An ImageInformation structure that contains the description of the data in sourceStream.
Remarks
Exceptions
The method call is invalid. For example, a method's parameter might contain an invalid value.