示例#1
0
        public Bitmap Convert(PixelFormat format, bool discardAlpha = false)
        {
            BitmapInstance instance = Instance.Convert(format, discardAlpha);

            return(new Bitmap(instance));
        }
示例#2
0
 public Bitmap(int width, int height, byte[] buffer, PixelFormat format, Palette?palette = null)
 {
     Instance = BitmapInstance.Create(width, height, buffer, format, palette);
 }
示例#3
0
 private Bitmap(BitmapInstance instance)
 {
     Instance = instance;
 }
示例#4
0
 public Bitmap(string filepath)
 {
     Instance = BitmapInstance.Create(filepath);
 }