Share via


PixelBitmapContent.TryGetFormat Method

Note

This method is available only when developing for Windows.

Gets the GPU texture format that corresponds to the specified bitmap type.

Syntax

'Declaration
Public Overrides Function TryGetFormat ( _
         out format As SurfaceFormat _
) As Boolean 
public override bool TryGetFormat (
         out SurfaceFormat format
)
public:
bool TryGetFormat(
         out SurfaceFormat format
) override

Parameters

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

PixelBitmapContent Generic Class
PixelBitmapContent Members
Microsoft.Xna.Framework.Content.Pipeline.Graphics Namespace

Platforms

Windows 7, Windows Vista, Windows XP