C# Class ImageTools.ImgExtensionMethods

Exibir arquivo Open project: prepare/HTML-Renderer

Public Methods

Method Description
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.

Private Methods

Method Description
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.

Method Details

GetInchHeight() public static method

public static GetInchHeight ( this img ) : double
img this
return double

GetInchWidth() public static method

public static GetInchWidth ( this img ) : double
img this
return double

GetPixelRatio() public static method

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