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).