Crop() 공개 메소드

Crops the image by the specified width/height
public Crop ( int Width, int Height, Align VAlignment, Align HAlignment ) : SwiftBitmap
Width int The width.
Height int The height.
VAlignment Align The v alignment.
HAlignment Align The h alignment.
리턴 SwiftBitmap
 public void Crop()
 {
     using (Utilities.Media.SwiftBitmap TestObject = new Utilities.Media.SwiftBitmap(@"..\..\Data\Image\Lenna.jpg"))
     {
         TestObject.Crop(100, 100, Align.Bottom, Align.Right).Save(@".\Testing\LennaCrop.jpg");
         Assert.True(new Utilities.IO.FileInfo(@".\Testing\LennaCrop.jpg").ReadBinary().SequenceEqual(new Utilities.IO.FileInfo(@"..\..\BitmapResults\LennaCrop.jpg").ReadBinary()));
     }
 }