GetImage() public method

public GetImage ( ) : Bitmap
return System.Drawing.Bitmap
Esempio n. 1
0
 public Bitmap RenderThumbnail(ScannedImage scannedImage, int size)
 {
     return RenderThumbnail(scannedImage.GetImage(), size);
 }
Esempio n. 2
0
 public Bitmap RenderThumbnail(ScannedImage scannedImage)
 {
     return RenderThumbnail(scannedImage.GetImage(), userConfigManager.Config.ThumbnailSize);
 }
Esempio n. 3
0
 public Bitmap RenderThumbnail(ScannedImage scannedImage, int size)
 {
     return(RenderThumbnail(scannedImage.GetImage(), size));
 }
Esempio n. 4
0
 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)
         };
     }
 }
Esempio n. 5
0
 public Bitmap RenderThumbnail(ScannedImage scannedImage)
 {
     return(RenderThumbnail(scannedImage.GetImage(), userConfigManager.Config.ThumbnailSize));
 }