Resize() public method

Resizes an SwiftBitmap to a certain height
public Resize ( int Width, int Height, Quality Quality = Quality.Low ) : SwiftBitmap
Width int New width for the final image
Height int New height for the final image
Quality Quality Quality of the resizing
return SwiftBitmap
コード例 #1
0
 public void Resize()
 {
     using (Utilities.Media.SwiftBitmap TestObject = new Utilities.Media.SwiftBitmap(@"..\..\Data\Image\Lenna.jpg"))
     {
         TestObject.Resize(50, 50).Save(@".\Testing\LennaResize.jpg");
         Assert.True(new Utilities.IO.FileInfo(@".\Testing\LennaResize.jpg").ReadBinary().SequenceEqual(new Utilities.IO.FileInfo(@"..\..\BitmapResults\LennaResize.jpg").ReadBinary()));
     }
 }