GetImage() public méthode

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