PixelBitmapContent<T>.TryGetFormat Method (Microsoft.Xna.Framework.Content.Pipeline.Graphics)
Gets the corresponding GPU texture format for the specified bitmap type.
Namespace: Microsoft.Xna.Framework.Content.Pipeline.Graphics
Assembly: MonoGame.Framework.Content.Pipeline (MonoGame.Framework.Content.Pipeline.dll 3.8.0.1082)
Assembly: MonoGame.Framework.Content.Pipeline (MonoGame.Framework.Content.Pipeline.dll 3.8.0.1082)
- C#
- VB
- F#
public bool TryGetFormat( out SurfaceFormat format )
Syntax for VB is not yet implemented.
Syntax for F# is not yet implemented.
Parameters
- format
-
Type: out Microsoft.Xna.Framework.Graphics.SurfaceFormat
Format being retrieved.
Return Value
Type: System.BooleanThe GPU texture format of the bitmap type.
Supported in:
Windows DirectX Desktop
Linux Desktop
Windows DirectX Desktop
Linux Desktop