Exemple #1
0
 public void RotateFine(double angle, Color background)
 {
     this.ThrowIfDisposed();
     var bg = background.ToGflColor();
     this.Gfl.ThrowIfError(this.Gfl.RotateFine(this.Handle, angle, ref bg));
     this.RefreshGflBitmap(this.Handle);
 }
Exemple #2
0
 public static Bitmap RotateFine(Bitmap src, double angle, Color background)
 {
     src.ThrowIfDisposed();
     var dst = IntPtr.Zero;
     var bg = background.ToGflColor();
     src.Gfl.ThrowIfError(src.Gfl.RotateFine(src.Handle, angle, ref bg));
     return new Bitmap(src.Gfl, dst);
 }
Exemple #3
0
 public void ResizeCanvas(int width, int height, ResizeMethod method, ResizeCanvasOrigin origin, Color background)
 {
     this.ThrowIfDisposed();
     var bg = background.ToGflColor();
     this.Gfl.ThrowIfError(this.Gfl.ResizeCanvas(this.Handle, width, height, method, origin, ref bg));
     this.RefreshGflBitmap(this.Handle);
 }
Exemple #4
0
 public static Bitmap ResizeCanvas(Bitmap src, int width, int height, ResizeMethod method, ResizeCanvasOrigin origin, Color background)
 {
     src.ThrowIfDisposed();
     var dst = IntPtr.Zero;
     var bg = background.ToGflColor();
     src.Gfl.ThrowIfError(src.Gfl.ResizeCanvas(src.Handle, width, height, method, origin, ref bg));
     return new Bitmap(src.Gfl, dst);
 }