GetTextureInformation Method (Stream) (Windows)

Texture.GetTextureInformation Method (Stream)

This method is available only when developing for Windows.
Retrieves information about a given image file stream.

Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

public static TextureInformation GetTextureInformation (
         Stream textureStream


Stream containing the image data.

Return Value

A description of the data in the source file.

Exception typeCondition
ArgumentNullException textureStream is null. The stream passed into this method cannot be null.
NotSupportedException textureStream is not readable. Streams passed into this method must be readable.
EndOfStreamException textureStream does not contain enough data to support this call.

Windows XP SP2, Windows Vista

© 2015 Microsoft