IRONSOFTWAREHOME
Clone AnyBitmap
using IronSoftware.Drawing;

// Clone an AnyBitmap
AnyBitmap clonedframe = AnyBitmap.FromFile(@"FILE_PATH").Clone();
clonedframe.SaveAs("frameClone.jpg");

// Clone frames of any image with a specified crop area
AnyBitmap clonedWithCrop = AnyBitmap.FromFile(@"FILE_PATH").Clone(new Rectangle(0, 0, 150, 150));
clonedWithCrop.SaveAs("cropCloned.jpg");

NuGet Download
PM > Install-Package IronSoftware.System.Drawing
Clone AnyBitmap

Clone AnyBitmap

One feature that IronDrawing provides is the ability to clone an AnyBitmap. This feature enables users to make an exact copy of an AnyBitmap file and save it without affecting the original file. Users can also specify the area they want to copy from a file by implementing the CropRectangle feature, allowing them to save a copy of the specified part of the file without modifying the original file.

To clone an AnyBitmap file, simply load an AnyBitmap file, use the .Clone() method, and save the cloned instance. To implement the CropRectangle feature, call the .Clone(new CropRectangle(X, Y, Width, Height)) method. All properties of CropRectangle are measured using pixels (px).

View on GitHub

Ready to Get Started?

Nuget Downloads 19,661,086Version:2025.3just released

Key in blue circle

Get your free 30-day Trial Key instantly.

Your trial license will be sent to your email address

No limitations. 100% unlocked. No credit card.

bullet_checkedNo credit card or account creation requiredNo limitations. 100% unlocked. No credit card.
  • Logo Aetna
  • Logo NASA
  • Logo GE
  • Logo Porsche
  • Logo USDA
  • Logo Qatar
Join Millions of Engineers who’ve tried IronPDF
Get Your No-Obligation Consult
Complete the form below or email sales@ironsoftware.com
Your details will always be kept confidential.
Trusted by Millions of Engineers Worldwide
Iron Software's customer logos
Get your free 30-day Trial Key instantly.
No credit card or account creation required