using System; using System.Drawing; using System.Text; namespace BizHawk.Bizware.BizwareGL { public class BitmapLoadOptions { /// /// A callback to be issued when a 24bpp image is detected, which will allow you to return a colorkey /// public Func ColorKey24bpp; /// /// Specifies whether palette entry 0 (if there is a palette) shall represent transparent (Alpha=0) /// public bool TransparentPalette0 = true; /// /// Specifies whether (r,g,b,0) pixels shall be turned into (0,0,0,0). /// This is useful for cleaning up junk which you might not know you had littering purely transparent areas, which can mess up a lot of stuff during rendering. /// public bool CleanupAlpha0 = true; /// /// Applies the Premultiply post-process (not supported yet; and anyway it could be done as it loads for a little speedup, in many cases) /// public bool Premultiply = false; /// /// Applies Pad() post-process /// public bool Pad = false; /// /// Allows the BitmapBuffer to wrap a System.Drawing.Bitmap, if one is provided for loading. /// This System.Drawing.Bitmap must be 32bpp and these other options may be valid (since this approach is designed for quickly getting things into textures) /// Ownership of the bitmap remains with the user. /// public bool AllowWrap = true; } }