Leadtools.Windows.Media.Effects Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.8.31
ApplyMathematicalLogicCommandBitmapEffectsFlags Enumeration
See Also  
Leadtools.Windows.Media.Effects.Color Namespace : ApplyMathematicalLogicCommandBitmapEffectsFlags Enumeration




Flags that indicate the channel that will be used, the treatment of the input pixel values, the mathematical operation, and the treatment of the output pixel values.

Syntax

Visual Basic (Declaration) 
Public Enum ApplyMathematicalLogicCommandBitmapEffectsFlags 
   Inherits Enum
Visual Basic (Usage)Copy Code
Dim instance As ApplyMathematicalLogicCommandBitmapEffectsFlags
C# 
public enum ApplyMathematicalLogicCommandBitmapEffectsFlags : Enum 
Managed Extensions for C++ 
__value public enum ApplyMathematicalLogicCommandBitmapEffectsFlags : public Enum 
C++/CLI 
public enum class ApplyMathematicalLogicCommandBitmapEffectsFlags : public Enum 

Members

MemberDescription
Master All channels.
Red Red channel only.
Green Green channel only.
Blue Blue channel only.
ValueDoNothing No change.
ValueNot Invert the color, resulting in its complement.
ValueZero Change all bits to 0.
ValueOne Change all bits to 1.
OperationAnd Combine each pixel component value and the Factor property using a bitwise AND (&). (pixel = pixel & Factor)
OperationOr Combine each pixel component value and the Factor property using a bitwise OR (|). (pixel = pixel | Factor)
OperationXor Combine each pixel component value and the Factor property using a bitwise XOR (^). (pixel = 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) )
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) )
OperationAbsoluteDifference Calculate the Absolute difference between the Factor property and each pixel component value. (pixel = abs(pixel – Factor))
OperationMultiply Multiply each pixel component value by Factor/100. (pixel = pixel * Factor / 100)
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)
OperationAverage Use the average of the each pixel component value and the Factor property. (pixel = (pixel+Factor) / 2).
OperationMinimum Use the lesser of the pixel component values and the Factor property. (pixel = min(pixel, Factor) )
OperationMaximum Use the greater of the pixel component values and the Factor property. (pixel = max(pixel, Factor) )
ResultDoNothing No change.
ResultNot Invert the color, resulting in its complement.
ResultZero Change all bits to 0.
ResultOne Change all bits to 1.

Inheritance Hierarchy

System.Object
   System.ValueType
      System.Enum
         Leadtools.Windows.Media.Effects.Color.ApplyMathematicalLogicCommandBitmapEffectsFlags

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also