LEADTOOLS Image Processing (Leadtools.ImageProcessing.Color assembly)
LEAD Technologies, Inc

ApplyMathematicalLogicCommandFlags Enumeration






Enumeration flags that identify the channel that will be used, the treatment of the input pixel values, the mathematical operation, and the treatment of the output pixel values. .NET support WinRT support Silverlight support
Syntax
[FlagsAttribute()]
public enum ApplyMathematicalLogicCommandFlags : System.Enum, System.IComparableSystem.IConvertibleSystem.IFormattable  
'Declaration
 
<FlagsAttribute()>
Public Enum ApplyMathematicalLogicCommandFlags 
   Inherits System.Enum
   Implements System.IComparableSystem.IConvertibleSystem.IFormattable 
'Usage
 
Dim instance As ApplyMathematicalLogicCommandFlags
[FlagsAttribute()]
public enum ApplyMathematicalLogicCommandFlags : System.IComparableSystem.IConvertibleSystem.IFormattable  
Leadtools.ImageProcessing.Color.ApplyMathematicalLogicCommandFlags = function() { };
Leadtools.ImageProcessing.Color.ApplyMathematicalLogicCommandFlags.prototype = {
LeadtoolsMemberMarker(replace me) };
[FlagsAttribute()]
public enum class ApplyMathematicalLogicCommandFlags : public System.Enum, System.IComparableSystem.IConvertibleSystem.IFormattable  
Members
MemberDescription
BlueBlue channel only.
GreenGreen channel only.
MasterAll channels.
OperationAbsoluteDifferenceCalculate the Absolute difference between the Factor property and each pixel component value. (pixel = abs(pixel - Factor))
OperationAddAdd pixel component value to the Factor property, clamping the result to the maximum allowed pixel value. (pixel = min(pixel + Factor, MaximumPixelValue) )
OperationAndCombine each pixel component value and the Factor property using a bitwise AND (&). (pixel = pixel & Factor)
OperationAverageUse the average of the each pixel component value and the Factor property. (pixel = (pixel+Factor) / 2).
OperationDivisionByFactorDivide each pixel component value by Factor/100. An error will be returned if Factor = 0. (pixel = pixel * 100 / Factor)
OperationDivisionByValueDivide 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)
OperationMaximumUse the greater of the pixel component values and the Factor property. (pixel = max(pixel, Factor) )
OperationMinimumUse the lesser of the pixel component values and the Factor property. (pixel = min(pixel, Factor) )
OperationMultiplyMultiply each pixel component value by Factor/100. (pixel = pixel * Factor / 100)
OperationOrCombine each pixel component value and the Factor property using a bitwise OR (|). (pixel = pixel | Factor)
OperationSubtractFactorSubtract each pixel component value from the Factor property, clamping the result to the allowed pixel range. (pixel = min(max(Factor - pixel, MinimumPixelValue), MaximumPixelValue) )
OperationSubtractValueSubtract the Factor property from each pixel component value, clamping the result to the allowed pixel range. (pixel = min(max(pixel - Factor), MinimumPixelValue, MaximumPixelValue) )
OperationXorCombine each pixel component value and the Factor property using a bitwise XOR (^). (pixel = pixel ^ Factor)
RedRed channel only.
ResultDoNothingNo change.
ResultNotInvert the color, resulting in its complement.
ResultOneChange all bits to 1.
ResultZeroChange all bits to 0.
ValueDoNothingNo change.
ValueNotInvert the color, resulting in its complement.
ValueOneChange all bits to 1.
ValueZeroChange all bits to 0.
Remarks
These flags have a System.FlagsAttribute attribute that allows a bitwise combination of its member values.

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
Inheritance Hierarchy

System.Object
   System.ValueType
      System.Enum
         Leadtools.ImageProcessing.Color.ApplyMathematicalLogicCommandFlags

Requirements

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

See Also

Reference

Leadtools.ImageProcessing.Color Namespace

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.