C# 클래스 DynamicImageHandler.ImageTools.NativeImageTool

The native image tool.
상속: IImageTool
파일 보기 프로젝트 열기: CaptiveAire/Dynamic-Image-Handler

공개 메소드들

메소드 설명
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.

메소드 상세

Encode() 공개 메소드

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

Resize() 공개 메소드

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
리턴 System.Drawing.Bitmap

Rotate() 공개 메소드

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

ToGreyScale() 공개 메소드

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

Watermark() 공개 메소드

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. ///
리턴 System.Drawing.Bitmap

Zoom() 공개 메소드

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. ///
리턴 System.Drawing.Bitmap