/// <summary> /// Copies the image scaled to fill the form when its resized. /// </summary> public void CopyScaledImage() { using (Bitmap img = ImageProcessor.GetResizedBitmap(this.Image, new Size(Width - Options.BorderThickness, Height - Options.BorderThickness))) { ClipboardHelper.CopyImage(img); } }
/// <param name="interp">The interpolation mode to use when resizing.</param> public void ResizeImage(Size newSize, InterpolationMode interp) { if (CurrentBitmap == null) { return; } TrackChange(BitmapChanges.Resized); Image i = ImageProcessor.GetResizedBitmap(CurrentBitmap, newSize, interp); CurrentBitmap.UpdateImage(i); }