C# 클래스 SoundInTheory.DynamicImage.Filters.ResizeFilter

Changes the size of a Layer. This filter can be used in several ways depending on the effect you wish to achieve.

There are five modes available for the ResizeFilter filter.

By default, images will not be enlarged if they are smaller than the target size. However, you can set the ResizeFilter.EnlargeImage property to true to allow enlargement.
상속: ImageReplacementFilter
파일 보기 프로젝트 열기: sitdap/dynamic-image 1 사용 예제들

보호된 메소드들

메소드 설명
ApplyFilter ( FastBitmap source, System.Windows.Media.DrawingContext dc, int destinationWidth, int destinationHeight ) : void

Applies the ResizeFilter to the specified source.

GetDestinationDimensions ( FastBitmap source, int &width, int &height ) : bool

Returns the dimensions of the output image.

비공개 메소드들

메소드 설명
CalculateOutputDimensions ( int nInputWidth, int nInputHeight, int nRequestedWidth, int nRequestedHeight, int &nOutputWidth, int &nOutputHeight ) : void

메소드 상세

ApplyFilter() 보호된 메소드

Applies the ResizeFilter to the specified source.
protected ApplyFilter ( FastBitmap source, System.Windows.Media.DrawingContext dc, int destinationWidth, int destinationHeight ) : void
source FastBitmap The source image.
dc System.Windows.Media.DrawingContext
destinationWidth int
destinationHeight int
리턴 void

GetDestinationDimensions() 보호된 메소드

Returns the dimensions of the output image.
protected GetDestinationDimensions ( FastBitmap source, int &width, int &height ) : bool
source FastBitmap The source image.
width int The desired width of the output image.
height int The desired height of the output image.
리턴 bool