TextureContent.ConvertBitmapType Method
Note
This method is available only when developing for Windows.
Converts all bitmaps for this texture to a different format.
Syntax
'Declaration
Public Sub ConvertBitmapType ( _
newBitmapType As Type _
)
public void ConvertBitmapType (
Type newBitmapType
)
public:
void ConvertBitmapType(
Type newBitmapType
)
Parameters
- newBitmapType
Type: Type
Type being converted to. The new type must be a subclass of BitmapContent, such as PixelBitmapContent or DxtBitmapContent.
Exceptions
Exception type | Condition |
---|---|
ArgumentException |
|
ArgumentNullException | newBitmapType is null. |
Requirements
Namespace: Microsoft.Xna.Framework.Content.Pipeline.Graphics
Assembly: Microsoft.Xna.Framework.Content.Pipeline (in microsoft.xna.framework.content.pipeline.dll)
See Also
Reference
TextureContent Class
TextureContent Members
Microsoft.Xna.Framework.Content.Pipeline.Graphics Namespace
Platforms
Windows 7, Windows Vista, Windows XP