CropCommandConstructFinalImage Method |
Called by the default implementation of Apply, ConstructFinalImage constructs the image that will be used
as the destination image for the command.
Namespace:
Atalasoft.Imaging.ImageProcessing
Assembly:
Atalasoft.dotImage (in Atalasoft.dotImage.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax protected override AtalaImage ConstructFinalImage(
AtalaImage image
)
Protected Overrides Function ConstructFinalImage (
image As AtalaImage
) As AtalaImage
Parameters
- image
- Type: Atalasoft.ImagingAtalaImage
The source image being processed. This may be different from the source image passed into
Apply.
Return Value
Type:
AtalaImage
A new image for the result of the command, or null if it is not possible or necessary to make a
destination image.
Remarks The default implementation returns a new image in the same pixel format as the source image.
The returned image must be the same size as the image passed in.
If it is not possible to allocate the image (for example, the pixel format is not know at this point), it is
acceptable to return null. Returning null implies that the command will return a non-null image in
PerformActualCommand.
If an error occurs, this method should throw an exception.
See Also