private static ImageEngineFormat DetermineBestDDSFormat(Bitmap bitmap) { var ddsFormat = ImageEngineFormat.DDS_DXT1; if (BitmapUtilities.HasTransparency(bitmap)) { ddsFormat = ImageEngineFormat.DDS_DXT3; } return(ddsFormat); }