C# Class DynamicImageHandler.ImageTools.NativeImageTool

The native image tool.
Inheritance: IImageTool
ファイルを表示 Open project: CaptiveAire/Dynamic-Image-Handler

Public Methods

Method Description
Encode ( Bitmap source, ImageFormat imageFormat ) : byte[]

The encode.

Resize ( Bitmap source, int width, int height, bool preservePerspective, bool keepSquare, Color bgColor ) : Bitmap

The resize.

Rotate ( Bitmap source, float angle ) : Bitmap

The rotate.

ToGreyScale ( Bitmap source ) : Bitmap

The to grey scale.

Watermark ( Bitmap source, string watermarkText, float fontSize, int alpha, Color color ) : Bitmap

The watermark.

Zoom ( Bitmap source, float zoomFactor ) : Bitmap

The zoom.

Method Details

Encode() public method

The encode.
public Encode ( Bitmap source, ImageFormat imageFormat ) : byte[]
source System.Drawing.Bitmap /// The source. ///
imageFormat System.Drawing.Imaging.ImageFormat /// The image format. ///
return byte[]

Resize() public method

The resize.
public Resize ( Bitmap source, int width, int height, bool preservePerspective, bool keepSquare, Color bgColor ) : Bitmap
source System.Drawing.Bitmap /// The source. ///
width int /// The width. ///
height int /// The height. ///
preservePerspective bool /// The preserve perspective. ///
keepSquare bool
bgColor Color
return System.Drawing.Bitmap

Rotate() public method

The rotate.
///
public Rotate ( Bitmap source, float angle ) : Bitmap
source System.Drawing.Bitmap /// The source. ///
angle float /// The angle. ///
return System.Drawing.Bitmap

ToGreyScale() public method

The to grey scale.
public ToGreyScale ( Bitmap source ) : Bitmap
source System.Drawing.Bitmap /// The source. ///
return System.Drawing.Bitmap

Watermark() public method

The watermark.
public Watermark ( Bitmap source, string watermarkText, float fontSize, int alpha, Color color ) : Bitmap
source System.Drawing.Bitmap /// The source. ///
watermarkText string /// The watermark text. ///
fontSize float /// The font size. ///
alpha int /// The alpha. ///
color Color /// The color. ///
return System.Drawing.Bitmap

Zoom() public method

The zoom.
is greater than or less than .
public Zoom ( Bitmap source, float zoomFactor ) : Bitmap
source System.Drawing.Bitmap /// The source. ///
zoomFactor float /// The zoom factor. ///
return System.Drawing.Bitmap