Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Texture.GetCreationParameters Method (GraphicsDevice, Stream)

This method is available only when developing for Windows.
Loads texture creation parameters from a stream.

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

public static TextureCreationParameters GetCreationParameters (
         GraphicsDevice graphicsDevice,
         Stream textureStream


The GraphicsDevice to associate with the texture creation parameters.
Stream containing the texture creation data.

Return Value

The texture creation parameters.

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

Community Additions

© 2015 Microsoft