Share via


BitmapContent.TryGetFormat Method

Gets the corresponding GPU texture format for the specified bitmap type.

Namespace: Microsoft.Xna.Framework.Content.Pipeline.Graphics
Assembly: Microsoft.Xna.Framework.Content.Pipeline (in microsoft.xna.framework.content.pipeline.dll)

Syntax

public virtual abstract bool TryGetFormat (
         out SurfaceFormat format
)

Parameters

Return Value

true if the bitmap matches format; false otherwise.

See Also

Reference

BitmapContent Class
BitmapContent Members
Microsoft.Xna.Framework.Content.Pipeline.Graphics Namespace

Platforms

Windows XP SP2, Windows Vista