public Bitmap Convert(PixelFormat format, bool discardAlpha = false) { BitmapInstance instance = Instance.Convert(format, discardAlpha); return(new Bitmap(instance)); }
public Bitmap(int width, int height, byte[] buffer, PixelFormat format, Palette?palette = null) { Instance = BitmapInstance.Create(width, height, buffer, format, palette); }
private Bitmap(BitmapInstance instance) { Instance = instance; }
public Bitmap(string filepath) { Instance = BitmapInstance.Create(filepath); }