ThreadedCommand Class |
Namespace: Atalasoft.Imaging.ImageProcessing
The ThreadedCommand type exposes the following members.
Name | Description | |
---|---|---|
ThreadedCommand | Initializes a new instance of the ThreadedCommand class | |
ThreadedCommand(ImageCommand) | Initializes a new instance of the ThreadedCommand class | |
ThreadedCommand(ImageCommand, Int32) | Initializes a new instance of the ThreadedCommand class |
Name | Description | |
---|---|---|
ApplyToAnyPixelFormat | Sets or gets the value of AppyToAnyPixelFormat in the underlying command. (Overrides ImageCommandApplyToAnyPixelFormat.) | |
CanApplyToAnyPixelFormat | Returns the value of CanApplyToAnyPixelFormat in the underlying command. (Overrides ImageCommandCanApplyToAnyPixelFormat.) | |
Command | Sets or gets the underlying command that will be multithreaded. | |
InPlaceProcessing | Returns the InPlaceProcessing value of the underlying command. (Overrides ImageCommandInPlaceProcessing.) | |
OptimalThreadCount | Returns the best number of threads to use for the current system. | |
Progress | Gets or sets the ProgressEventHandler delegate which can be used to view or cancel the
progress of the current process. (Inherited from ImageCommand.) | |
StripSize | Gets or sets the size of strips that will be processed by individual threads. | |
SupportedPixelFormats | Returns the value of SupportedPixelFormats of the underlying command. (Overrides ImageCommandSupportedPixelFormats.) | |
ThreadCount | The total number of threads that will be used for this command. |
Name | Description | |
---|---|---|
Apply | Apply the command to the given image. (Inherited from ImageCommand.) | |
ApplyToImage | Obsolete.
Applies the command to the source AtalaImage.
(Inherited from ImageCommand.) | |
ConstructChangedSourceImage |
The method is called by the default implementation of Apply. It determines if it is necessary to create a
copy of the source image in a different pixel format and if so, determines the best new pixel format and allocates
that image.
(Overrides ImageCommandConstructChangedSourceImage(AtalaImage).) | |
ConstructFinalImage |
Called by the default implementation of Apply, ConstructFinalImage constructs the image that will be used
as the destination image for the command.
(Overrides ImageCommandConstructFinalImage(AtalaImage).) | |
ConstructImageResults |
Constructs the results object for this command.
(Overrides ImageCommandConstructImageResults.) | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetChangedPixelFormat |
This method is called to change the pixel format of the source image.
(Overrides ImageCommandGetChangedPixelFormat(AtalaImage, PixelFormat).) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
ImageCommandGetObjectData | Aggregates ImageCommand data into the supplied SerializationInfo object. (Inherited from ImageCommand.) | |
IsPixelFormatSupported |
Returns a value indicating if the specified pixel format is supported.
(Overrides ImageCommandIsPixelFormatSupported(PixelFormat).) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
PerformActualCommand |
PerformActualCommand does the actual work of the image processing command.
(Overrides ImageCommandPerformActualCommand(AtalaImage, AtalaImage, Rectangle, ImageResults).) | |
SelectBestAlternatePixelFormat |
Choose the best pixel format to use for this command when the supplied source image's pixel format is
unacceptable.
(Overrides ImageCommandSelectBestAlternatePixelFormat(AtalaImage, PixelFormat, PixelFormat).) | |
SelectPreferredPixelFormat |
Chooses a pixel format that is preferred for this command.
(Overrides ImageCommandSelectPreferredPixelFormat(AtalaImage, PixelFormat, PixelFormat).) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
VerifyImage | Verify the integrity of an AtalaImage. (Inherited from ImageCommand.) | |
VerifyProperties |
Verify the integrity of properties in the command before processing an image.
(Overrides ImageCommandVerifyProperties(AtalaImage).) |
Name | Description | |
---|---|---|
MinimumStripSizeInBytes |
The minimum strip size in bytes
|
Only ImageCommands that implement the IThreadableCommand and ICloneable interfaces can be used with ThreadedCommand. ThreadedCommand manages all thread creation and synchronization, proxy management of ImageCommand operations and so on.
Once a ThreadedCommand has been created and given a valid ImageCommand, it can be used any place that ImageCommand can be used.