Click or drag to resize

ResampleDocumentCommand Constructor (Rectangle, Size, ResampleDocumentMethod, Int32)

Creates a new instance of ResampleDocumentCommand specifying sourceRect, destSize, documentMethod and cutOff.

Namespace:  Atalasoft.Imaging.ImageProcessing.Document
Assembly:  Atalasoft.dotImage (in Atalasoft.dotImage.dll) Version: 11.0.0.0.0.297 (.NET 4.5.2, x86)
Syntax
public ResampleDocumentCommand(
	Rectangle sourceRect,
	Size destSize,
	ResampleDocumentMethod documentMethod,
	int cutOff
)

Parameters

sourceRect
Type: System.DrawingRectangle
The rectangular region of the source image which will be resized.
destSize
Type: System.DrawingSize
The final size of the image.
documentMethod
Type: Atalasoft.Imaging.ImageProcessing.DocumentResampleDocumentMethod
The 1-bit specialized resampling method to apply.
cutOff
Type: SystemInt32
The grayscale value which is the cutoff value for a black pixel when using AreaAverage.
Exceptions
ExceptionCondition
Thrown if destSize width or height is less than 1, or if cutOff is less than 0.
See Also