[FlagsAttribute()] public enum ApplyMathematicalLogicCommandFlags : System.Enum, System.IComparable, System.IConvertible, System.IFormattable
'Declaration <FlagsAttribute()> Public Enum ApplyMathematicalLogicCommandFlags Inherits System.Enum Implements System.IComparable, System.IConvertible, System.IFormattable
'Usage Dim instance As ApplyMathematicalLogicCommandFlags
[FlagsAttribute()] public enum ApplyMathematicalLogicCommandFlags : System.IComparable, System.IConvertible, System.IFormattable
Leadtools.ImageProcessing.Color.ApplyMathematicalLogicCommandFlags = function() { }; Leadtools.ImageProcessing.Color.ApplyMathematicalLogicCommandFlags.prototype = {
LeadtoolsMemberMarker(replace me) };
[FlagsAttribute()] public enum class ApplyMathematicalLogicCommandFlags : public System.Enum, System.IComparable, System.IConvertible, System.IFormattable
Member | Description |
---|---|
Blue | Blue channel only. |
Green | Green channel only. |
Master | All channels. |
OperationAbsoluteDifference | Calculate the Absolute difference between the Factor property and each pixel component value. (pixel = abs(pixel - Factor)) |
OperationAdd | Add pixel component value to the Factor property, clamping the result to the maximum allowed pixel value. (pixel = min(pixel + Factor, MaximumPixelValue) ) |
OperationAnd | Combine each pixel component value and the Factor property using a bitwise AND (&). (pixel = pixel & Factor) |
OperationAverage | Use the average of the each pixel component value and the Factor property. (pixel = (pixel+Factor) / 2). |
OperationDivisionByFactor | Divide each pixel component value by Factor/100. An error will be returned if Factor = 0. (pixel = pixel * 100 / Factor) |
OperationDivisionByValue | Divide the Factor property by each pixel value. If the pixel value is 0, the result is set to the maximum allowed pixel value. (pixel = pixel ? min(Factor / pixel, MaximumPixelValue) : MaximumPixelValue) |
OperationMaximum | Use the greater of the pixel component values and the Factor property. (pixel = max(pixel, Factor) ) |
OperationMinimum | Use the lesser of the pixel component values and the Factor property. (pixel = min(pixel, Factor) ) |
OperationMultiply | Multiply each pixel component value by Factor/100. (pixel = pixel * Factor / 100) |
OperationOr | Combine each pixel component value and the Factor property using a bitwise OR (|). (pixel = pixel | Factor) |
OperationSubtractFactor | Subtract each pixel component value from the Factor property, clamping the result to the allowed pixel range. (pixel = min(max(Factor - pixel, MinimumPixelValue), MaximumPixelValue) ) |
OperationSubtractValue | Subtract the Factor property from each pixel component value, clamping the result to the allowed pixel range. (pixel = min(max(pixel - Factor), MinimumPixelValue, MaximumPixelValue) ) |
OperationXor | Combine each pixel component value and the Factor property using a bitwise XOR (^). (pixel = pixel ^ Factor) |
Red | Red channel only. |
ResultDoNothing | No change. |
ResultNot | Invert the color, resulting in its complement. |
ResultOne | Change all bits to 1. |
ResultZero | Change all bits to 0. |
ValueDoNothing | No change. |
ValueNot | Invert the color, resulting in its complement. |
ValueOne | Change all bits to 1. |
ValueZero | Change all bits to 0. |
You can use a bitwise OR (|) to specify one flag from each group.
Group | Flags |
Flags that indicate the channel that will be used | Master, Red, Green, Blue |
Flags that indicate how to treat the color value | ValueDoNothing, ValueNot, ValueZero, ValueOne |
Flags that indicate the mathematical operation to use | OperationAnd, ValueNot, ValueZero, ValueOne, OperationAnd, OperationOr, OperationXor, OperationAdd, OperationSubtractFactor, OperationSubtractValue, OperationAbsoluteDifference, OperationMultiply, OperationDivisionByFactor, OperationDivisionByValue, OperationAverage, OperationMinimum, OperationMaximum |
Flags that indicate how to treat the output value | ResultDoNothing, ResultNot, ResultZero, ResultOne |
System.Object
System.ValueType
System.Enum
Leadtools.ImageProcessing.Color.ApplyMathematicalLogicCommandFlags
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2