Share via


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

Exceptions

Exception type Condition
ArgumentException
  • ConvertBitmapType cannot convert to newBitmapType. The target type must be derived from BitmapContent.
  • ConvertBitmapType cannot convert to newBitmapType. The target must be a concrete type with a public constructor taking integer width and height parameters.
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