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.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax public ResampleDocumentCommand(
Rectangle sourceRect,
Size destSize,
ResampleDocumentMethod documentMethod,
int cutOff
)
Public Sub New (
sourceRect As Rectangle,
destSize As Size,
documentMethod As ResampleDocumentMethod,
cutOff As Integer
)
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 Exception | Condition |
---|
| Thrown if destSize width or height is less than 1, or if cutOff is less than 0. |
See Also