C# 클래스 ImageTools.ImgExtensionMethods

파일 보기 프로젝트 열기: prepare/HTML-Renderer

공개 메소드들

메소드 설명
GetInchHeight ( this img ) : double
GetInchWidth ( this img ) : double
GetPixelRatio ( this img ) : double

Gets the ratio between the width and the height of this SimpleImage instance.

비공개 메소드들

메소드 설명
FlipX ( SimpleImage image ) : void

Swaps the image at the X-axis, which goes throug the middle of the height of the image.

FlipY ( SimpleImage image ) : void

Swaps the image at the Y-axis, which goes throug the middle of the width of the image.

Rotate180 ( SimpleImage source, SimpleImage target ) : void
Rotate270 ( SimpleImage source, SimpleImage target ) : void
Rotate90 ( SimpleImage source, SimpleImage target ) : void
Transform ( SimpleImage source, SimpleImage target, RotationType rotationType, FlippingType flippingType ) : void

Transforms the specified image by flipping and rotating it. First the image will be rotated, then the image will be flipped. A new image will be returned. The original image will not be changed.

메소드 상세

GetInchHeight() 공개 정적인 메소드

public static GetInchHeight ( this img ) : double
img this
리턴 double

GetInchWidth() 공개 정적인 메소드

public static GetInchWidth ( this img ) : double
img this
리턴 double

GetPixelRatio() 공개 정적인 메소드

Gets the ratio between the width and the height of this SimpleImage instance.
public static GetPixelRatio ( this img ) : double
img this
리턴 double