Click or drag to resize

ApplyLutCommandBasePerformActualCommand Method

PerformActualCommand does the actual work of the image processing command.

Namespace:  Atalasoft.Imaging.ImageProcessing.Channels
Assembly:  Atalasoft.dotImage (in Atalasoft.dotImage.dll) Version: 11.3.0.0.0.668 (.NET 4.5.2, x86)
Syntax
protected override AtalaImage PerformActualCommand(
	AtalaImage source,
	AtalaImage dest,
	Rectangle imageArea,
	ref ImageResults results
)

Parameters

source
Type: Atalasoft.ImagingAtalaImage
The source image for processing. This may be different from the original image.
dest
Type: Atalasoft.ImagingAtalaImage
The destination image. Dest will be null when InPlaceProcessing is true or when ConstructFinalImage returns null.
imageArea
Type: System.DrawingRectangle
An area of the source image to process. When the destination image is non-null, it will always be the same size as imageArea. ImageArea only differs in size from the source image when the command is a subclass of ImageRegionCommand and when there is a region of interest.
results
Type: Atalasoft.Imaging.ImageProcessingImageResults
The results object that will be used for this command.

Return Value

Type: AtalaImage
In most cases, PerformActualCommand should return null. When PerformActualCommand returns a non-null image, it is indicating that it has allocated a new image to use for the final image. This must be true if ConstructFinalImage returned null.
Exceptions
ExceptionCondition
ArgumentNullException source or channel1;channel1 null in 8bbpGrayscale or channel1;channel1 null inside 16bppGrayscale
See Also