Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Note
This method is available only when developing for Windows.
Loads texture creation parameters from a stream, specifying the number of bytes in the stream.
Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)
Syntax
public static TextureCreationParameters GetCreationParameters (
GraphicsDevice graphicsDevice,
Stream textureStream,
int numberBytes
)
Parameters
- graphicsDevice
The GraphicsDevice to associate with the texture creation parameters. - textureStream
Stream containing the texture data. - numberBytes
The number of bytes in textureStream
Return Value
The texture creation parameters.
Exceptions
Exception type | Condition |
---|---|
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. |
See Also
Reference
Texture Class
Texture Members
Microsoft.Xna.Framework.Graphics Namespace
Platforms
Windows XP SP2, Windows Vista