C# Class LibAPNG.XNA.APNGPipelineExtension.TextureProcessorUtils

Afficher le fichier Open project: xupefei/APNG.NET Class Usage Examples

Méthodes publiques

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

Private Methods

Méthode 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 méthode

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

IsHighPrecisionFormat() public static méthode

public static IsHighPrecisionFormat ( Type bitmapType ) : bool
bitmapType System.Type
Résultat bool

PremultiplyAlpha() public static méthode

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

ResizeToPowerOfTwo() public static méthode

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