internal void ProcessSingleFrame(TextureContent input) { bool colorKeyEnabled = ColorKeyEnabled; bool premultiplyAlpha = PremultiplyAlpha; Type bitmapType = null; if (colorKeyEnabled || premultiplyAlpha) { Type type2; input.Validate(null); bitmapType = input.Faces[0][0].GetType(); if (TextureProcessorUtils.IsHighPrecisionFormat(bitmapType)) { type2 = typeof(PixelBitmapContent <Vector4>); } else { type2 = typeof(PixelBitmapContent <Color>); } input.ConvertBitmapType(type2); } if (colorKeyEnabled) { TextureProcessorUtils.ColorKey(input, ColorKeyColor); } if (premultiplyAlpha) { TextureProcessorUtils.PremultiplyAlpha(input); } if (ResizeToPowerOfTwo) { TextureProcessorUtils.ResizeToPowerOfTwo(input); } if (GenerateMipmaps) { input.GenerateMipmaps(false); } TextureProcessorUtils.ChangeTextureToRequestedFormat(input, bitmapType, TextureFormat); }