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 다운로드
PM > Install-Package IronSoftware.System.Drawing
AnyBitmap 복제

AnyBitmap 복제

IronDrawing이 제공하는 한 가지 기능은 AnyBitmap을(를) 복제할 수 있는 기능입니다. 이 기능을 통해 사용자는 AnyBitmap 파일을 정확하게 복사하고 원본 파일에 영향을 주지 않고 저장할 수 있습니다. 사용자는 또한 CropRectangle 기능을 구현하여 파일에서 복사하고자 하는 영역을 지정할 수 있으며, 이를 통해 원본 파일을 수정하지 않고 지정된 부분의 복사본을 저장할 수 있습니다.

AnyBitmap 파일을 복제하려면, AnyBitmap 파일을 로드하고 .Clone() 메서드를 사용한 후 복제된 인스턴스를 저장하십시오. CropRectangle 기능을 구현하려면, .Clone(new CropRectangle(X, Y, Width, Height)) 메서드를 호출하십시오. CropRectangle의 모든 속성은 픽셀(px) 단위로 측정됩니다.

GitHub에서 보기

시작할 준비 되셨나요?

NuGet 다운로드 수 21,851,269버전:2026.11방금 출시