Export (0) Print
Expand All

Texture.GetTextureInformation Method (String)

Bb197234.note(en-US,XNAGameStudio.10).gifNote
This method is available only when developing for Windows.
Retrieves information about a given image file.

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

public static TextureInformation GetTextureInformation (
         string filename
)

Parameters

filename
File name of image.

Return Value

A description of the data in the source file.

Exception typeCondition
ArgumentException filename is a zero-length string, contains only white space, or contains one or more invalid characters as defined by InvalidPathChars.
ArgumentNullException filename is null.
PathTooLongExceptionThe specified path, file name, or both exceed the system-defined maximum length. For example, on Windows-based platforms, paths must be less than 248 characters, and file names must be less than 260 characters.
DirectoryNotFoundExceptionThe specified path is invalid (for example, it is on an unmapped drive).
UnauthorizedAccessException The filename parameter specifies a directory, or the caller does not have the required permission to access the file specified by filename.
FileNotFoundException The file specified in filename was not found.
NotSupportedException filename is in an invalid format.

Windows XP SP2, Windows Vista

Show:
© 2014 Microsoft