C# Class NAPS2.Scan.Images.ThumbnailRenderer

Show file Open project: cyanfish/naps2 Class Usage Examples

Public Methods

Method Description
RenderThumbnail ( Bitmap b ) : Bitmap
RenderThumbnail ( Bitmap b, int size ) : Bitmap

Gets a bitmap resized to fit within a thumbnail rectangle, including a border around the picture.

RenderThumbnail ( ScannedImage scannedImage ) : Bitmap
RenderThumbnail ( ScannedImage scannedImage, int size ) : Bitmap
ThumbnailRenderer ( IUserConfigManager userConfigManager ) : System

Method Details

RenderThumbnail() public method

public RenderThumbnail ( Bitmap b ) : Bitmap
b System.Drawing.Bitmap
return System.Drawing.Bitmap

RenderThumbnail() public method

Gets a bitmap resized to fit within a thumbnail rectangle, including a border around the picture.
public RenderThumbnail ( Bitmap b, int size ) : Bitmap
b System.Drawing.Bitmap The bitmap to resize.
size int The maximum width and height of the thumbnail.
return System.Drawing.Bitmap

RenderThumbnail() public method

public RenderThumbnail ( ScannedImage scannedImage ) : Bitmap
scannedImage ScannedImage
return System.Drawing.Bitmap

RenderThumbnail() public method

public RenderThumbnail ( ScannedImage scannedImage, int size ) : Bitmap
scannedImage ScannedImage
size int
return System.Drawing.Bitmap

ThumbnailRenderer() public method

public ThumbnailRenderer ( IUserConfigManager userConfigManager ) : System
userConfigManager IUserConfigManager
return System