GetImage() 공개 메소드

public GetImage ( ) : Bitmap
리턴 System.Drawing.Bitmap
예제 #1
0
 public Bitmap RenderThumbnail(ScannedImage scannedImage, int size)
 {
     return RenderThumbnail(scannedImage.GetImage(), size);
 }
예제 #2
0
 public Bitmap RenderThumbnail(ScannedImage scannedImage)
 {
     return RenderThumbnail(scannedImage.GetImage(), userConfigManager.Config.ThumbnailSize);
 }
예제 #3
0
 public Bitmap RenderThumbnail(ScannedImage scannedImage, int size)
 {
     return(RenderThumbnail(scannedImage.GetImage(), size));
 }
예제 #4
0
파일: FCrop.cs 프로젝트: v0id24/naps2
 private CropTransform ScaleCropTransform(ScannedImage img, Bitmap referenceBitmap)
 {
     using (var bitmap = img.GetImage())
     {
         double xScale = bitmap.Width / (double)referenceBitmap.Width,
                yScale = bitmap.Height / (double)referenceBitmap.Height;
         return new CropTransform
         {
             Left = (int)Math.Round(CropTransform.Left * xScale),
             Right = (int)Math.Round(CropTransform.Right * xScale),
             Top = (int)Math.Round(CropTransform.Top * yScale),
             Bottom = (int)Math.Round(CropTransform.Bottom * yScale)
         };
     }
 }
예제 #5
0
 public Bitmap RenderThumbnail(ScannedImage scannedImage)
 {
     return(RenderThumbnail(scannedImage.GetImage(), userConfigManager.Config.ThumbnailSize));
 }