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");

Imports IronSoftware.Drawing

' Clone an AnyBitmap
Dim clonedframe As AnyBitmap = AnyBitmap.FromFile("FILE_PATH").Clone()
clonedframe.SaveAs("frameClone.jpg")

' Clone frames of any image with a specified crop area
Dim clonedWithCrop As AnyBitmap = 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 20,274,271Version:2026.11just 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 IronDrawing
Get a Quote, No Obligation
Your details will always be kept confidential.
  • Logo Aetna
  • Logo NASA
  • Logo GE
  • Logo Porsche
  • Logo USDA
  • Logo Qatar
Trusted by Millions of Engineers Worldwide
Get your free 30-day Trial Key instantly.
No credit card or account creation required