C# 클래스 ImageProcessor.Imaging.ResizeLayer

Encapsulates the properties required to resize an image.
파일 보기 프로젝트 열기: JimBobSquarePants/ImageProcessor 1 사용 예제들

공개 메소드들

메소드 설명
Equals ( object obj ) : bool

Returns a value that indicates whether the specified object is an ResizeLayer object that is equivalent to this ResizeLayer object.

GetHashCode ( ) : int

Returns the hash code for this instance.

ResizeLayer ( Size size, ResizeMode resizeMode = ResizeMode.Pad, AnchorPosition anchorPosition = AnchorPosition.Center, bool upscale = true, float centerCoordinates = null, Size maxSize = null, List restrictedSizes = null ) : System.Collections.Generic

Initializes a new instance of the ResizeLayer class.

메소드 상세

Equals() 공개 메소드

Returns a value that indicates whether the specified object is an ResizeLayer object that is equivalent to this ResizeLayer object.
public Equals ( object obj ) : bool
obj object /// The object to test. ///
리턴 bool

GetHashCode() 공개 메소드

Returns the hash code for this instance.
public GetHashCode ( ) : int
리턴 int

ResizeLayer() 공개 메소드

Initializes a new instance of the ResizeLayer class.
public ResizeLayer ( Size size, ResizeMode resizeMode = ResizeMode.Pad, AnchorPosition anchorPosition = AnchorPosition.Center, bool upscale = true, float centerCoordinates = null, Size maxSize = null, List restrictedSizes = null ) : System.Collections.Generic
size System.Drawing.Size /// The containing the width and height to set the image to. ///
resizeMode ResizeMode /// The resize mode to apply to resized image. (Default ResizeMode.Pad) ///
anchorPosition AnchorPosition /// The to apply to resized image. (Default AnchorPosition.Center) ///
upscale bool /// Whether to allow up-scaling of images. (Default true) ///
centerCoordinates float /// The center coordinates (Default null) ///
maxSize System.Drawing.Size /// The maximum size to resize an image to. /// Used to restrict resizing based on calculated resizing ///
restrictedSizes List /// The range of sizes to restrict resizing an image to. /// Used to restrict resizing based on calculated resizing ///
리턴 System.Collections.Generic