C# Class LibAPNG.XNA.APNGPipelineExtension.TextureProcessorUtils

Exibir arquivo Open project: xupefei/APNG.NET Class Usage Examples

Public Methods

Method Description
ColorKey ( TextureContent texture, Color colorKey ) : void
IsHighPrecisionFormat ( Type bitmapType ) : bool
PremultiplyAlpha ( TextureContent texture ) : void
ResizeToPowerOfTwo ( TextureContent texture ) : void

Private Methods

Method Description
BestGuessCompress ( TextureContent texture ) : void
ChangeTextureToRequestedFormat ( TextureContent texture, Type originalType, TextureProcessorOutputFormat textureFormat ) : void
ConvertBitmap ( Microsoft.Xna.Framework.Content.Pipeline.Graphics.BitmapContent source, Type newType, int width, int height ) : Microsoft.Xna.Framework.Content.Pipeline.Graphics.BitmapContent
HasFractionalAlpha ( TextureContent texture ) : bool
RoundUpToPowerOfTwo ( int value ) : int

Method Details

ColorKey() public static method

public static ColorKey ( TextureContent texture, Color colorKey ) : void
texture Microsoft.Xna.Framework.Content.Pipeline.Graphics.TextureContent
colorKey Color
return void

IsHighPrecisionFormat() public static method

public static IsHighPrecisionFormat ( Type bitmapType ) : bool
bitmapType System.Type
return bool

PremultiplyAlpha() public static method

public static PremultiplyAlpha ( TextureContent texture ) : void
texture Microsoft.Xna.Framework.Content.Pipeline.Graphics.TextureContent
return void

ResizeToPowerOfTwo() public static method

public static ResizeToPowerOfTwo ( TextureContent texture ) : void
texture Microsoft.Xna.Framework.Content.Pipeline.Graphics.TextureContent
return void