共用方式為


PixelBitmapContent.TryGetFormat Method

Gets the GPU texture format that corresponds to 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 override bool TryGetFormat (
         out SurfaceFormat format
)

Parameters

Return Value

true if the bitmap matches format; false otherwise.

See Also

Reference

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

Platforms

Windows XP SP2, Windows Vista