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); }
public static Bitmap Resize(Bitmap src, int width, int height, ResizeMethod method) { src.ThrowIfDisposed(); var dst = IntPtr.Zero; src.Gfl.ThrowIfError(src.Gfl.Resize(src.Handle, ref dst, width, height, method)); return new Bitmap(src.Gfl, dst); }
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); }
public static Bitmap FlipVertical(Bitmap src) { src.ThrowIfDisposed(); var dst = IntPtr.Zero; src.Gfl.ThrowIfError(src.Gfl.FlipVertical(src.Handle)); return new Bitmap(src.Gfl, dst); }