ResampleDocumentCommand Constructor (Rectangle, Size, ResampleMethod) |
Creates a new instance of ResampleDocumentCommand specifying sourceRect, destSize and
scaleToGrayMethod.
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,
ResampleMethod scaleToGrayMethod
)
Public Sub New (
sourceRect As Rectangle,
destSize As Size,
scaleToGrayMethod As ResampleMethod
)
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. - scaleToGrayMethod
- Type: Atalasoft.Imaging.ImageProcessingResampleMethod
The ResampleMethod to apply when the ResampleDocumentMethod is ScaleToGray.
Exceptions Exception | Condition |
---|
| Thrown if destSize width or height is less than 1. |
See Also