BitmapContent.TryGetFormat Method
Note
This method is available only when developing for Windows.
Gets the corresponding GPU texture format for the specified bitmap type.
Syntax
'Declaration
Public MustOverride Function TryGetFormat ( _
out format As SurfaceFormat _
) As Boolean
public abstract bool TryGetFormat (
out SurfaceFormat format
)
public:
bool TryGetFormat(
out SurfaceFormat format
) abstract
Parameters
- format
Type: SurfaceFormat
[OutAttribute] Format being compared.
Return Value
Type: Boolean
true if the bitmap matches format; false otherwise.
Requirements
Namespace: Microsoft.Xna.Framework.Content.Pipeline.Graphics
Assembly: Microsoft.Xna.Framework.Content.Pipeline (in microsoft.xna.framework.content.pipeline.dll)
See Also
Reference
BitmapContent Class
BitmapContent Members
Microsoft.Xna.Framework.Content.Pipeline.Graphics Namespace
Platforms
Windows 7, Windows Vista, Windows XP