public Bitmap ToBitmap() { if (stdDDS) { return(DDSImage.ToBitmap(GetMipData(), GetDDSFormat(), (int)Width, (int)Height)); } else { switch (Format) { case "A8R8G8B8": return(DDSImage.View32Bit(GetMipData(), (int)Width, (int)Height)); case "R8G8B8": return(DDSImage.View24Bit(GetMipData(), (int)Width, (int)Height)); default: throw new FormatException("Unknown/Unsupported Format"); } } }