Thetype exposes the following members.
Initializes a new instance of theclass
Initializes a new instance of theclass
Reports whether or not this command will be applied to any supplied PixelFormat image(Inherited from ImageCommand.)
Returns true if the command can be applied to any PixelFormat.(Inherited from ImageCommand.)
When true, color markings will be detected.
When true, color and gray photos will be detected.
This value controls the saturation threshold where a saturation less than the given value will be regarded as gray.
This value controls the amount in percent that any given pixel color is off of pure gray.
Gets a value indicating if the source image data is processed in-place as opposed to returning a new image.(Inherited from ImageCommand.)
Minimum size limit of color markings in pixels.
Minimum size limit of photo regions in pixels.
Gets or sets the ProgressEventHandler delegate which can be used to view or cancel the progress of the current process.(Inherited from ImageCommand.)
(Inherited from ImageRegionCommand.)
Gets or sets a RegionOfInterest which will only process the indicated region of the image.
Determines the sample size of the image to process, affecting quality and speed.
Gets a list of PixelFormats that this command will support without throwing an exception. This command supports color images only.(Overrides ImageCommandSupportedPixelFormats.)
Controls the percentage of entropy threshold that factors in the photo detection algoithm.
Specifies the masking window for estimating visual color activity used in photo region detection.
Apply the command to the given image.(Inherited from ImageCommand.)
|ApplyToImage|| Obsolete. |
Applies the command to the source AtalaImage.(Inherited from ImageCommand.)
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.(Inherited from ImageCommand.)
Determines whether the specified object is equal to the current object.(Inherited from Object.)
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)
This method is called to change the pixel format of the source image.(Inherited from ImageCommand.)
Serves as the default hash function.(Inherited from Object.)
|GetObjectData||(Overrides ImageRegionCommandGetObjectData(SerializationInfo, StreamingContext).)|
Gets the Type of the current instance.(Inherited from Object.)
Aggregates ImageCommand data into the supplied SerializationInfo object.(Inherited from ImageCommand.)
Returns a value indicating if the specified pixel format is supported.(Inherited from ImageCommand.)
Creates a shallow copy of the current Object.(Inherited from Object.)
|PerformActualCommand||(Overrides ImageCommandPerformActualCommand(AtalaImage, AtalaImage, Rectangle, ImageResults).)|
Choose the best pixel format to use for this command when the supplied source image's pixel format is unacceptable.(Inherited from ImageCommand.)
Chooses a pixel format that is preferred for this command.(Inherited from ImageCommand.)
Returns a string that represents the current object.(Inherited from Object.)
Verify the integrity of an AtalaImage.(Inherited from ImageCommand.)
This command is very useful for scanning documents as color, and automatically detecting when a document has no color so that it can be converted to black and white for better compression. The Apply method will result in an instance of ColorExtractionResults that contains a ColorExtractionResults.HasColor property. When HasColor is false, the document has only gray shades and can be converted to black and white with little to no loss in quality. When HasColor is true, it generally means that the document has color regions and that it should remain a color document to retain this color information.
The resulting Image in ColorExtractionResults is always a 32-bit BGRA with a transparent alpha channel masking the non-color areas. When no color is detected the resulting Image is a 1x1 pixel transparent image.
There are two distinct types of color areas in a document. A color marking can be a highlight region, red pen, or other solid colors. A photo region is an area with a lot of visual activity usually represented in a color or grayscale photograph. This command has the ability to detect color markings, photos, or both.
The default values are optimized for detecting color in scanned documents. By adjusting GrayscaleTolerance to a higher level, this command can be used for other purposes such as detecting grayscale or color magazine scans.