GraphicsUtil

class GraphicsUtil : System.Object
BitmapContent Resize(BitmapContent bitmap, int newWidth, int newHeight)
Parameters:
  • bitmap (Microsoft.Xna.Framework.Content.Pipeline.Graphics.BitmapContent) –
  • newWidth (int) –
  • newHeight (int) –
public void BGRAtoRGBA(System.Byte[] data)
Parameters:
  • data (System.Byte[]) –
public bool IsPowerOfTwo(int x)
Parameters:
  • x (int) –
public int GetNextPowerOfTwo(int value)

Returns the next power of two. Returns same value if already is PoT.

Parameters:
  • value (int) –
public void CompressPvrtc(TextureContent content, bool isSpriteFont)
Parameters:
  • content (Microsoft.Xna.Framework.Content.Pipeline.Graphics.TextureContent) –
  • isSpriteFont (bool) –
public void CompressDxt(GraphicsProfile profile, TextureContent content, bool isSpriteFont)
Parameters:
  • profile (Microsoft.Xna.Framework.Graphics.GraphicsProfile) –
  • content (Microsoft.Xna.Framework.Content.Pipeline.Graphics.TextureContent) –
  • isSpriteFont (bool) –
public void CompressAti(TextureContent content)
Parameters:
  • content (Microsoft.Xna.Framework.Content.Pipeline.Graphics.TextureContent) –
public void CompressEtc1(TextureContent content)
Parameters:
  • content (Microsoft.Xna.Framework.Content.Pipeline.Graphics.TextureContent) –
public void CompressColor16Bit(TextureContent content)
Parameters:
  • content (Microsoft.Xna.Framework.Content.Pipeline.Graphics.TextureContent) –
public void CompressFontDXT3(TextureContent content)
Parameters:
  • content (Microsoft.Xna.Framework.Content.Pipeline.Graphics.TextureContent) –