Leadtools.ImageProcessing.Effects Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.12.10
CombineCommandFlags Enumeration
See Also  
Leadtools.ImageProcessing.Effects Namespace : CombineCommandFlags Enumeration




Enumeration that indicates the treatment of the source, treatment of the destination, the operation to use when combining the data, and the treatment of the resulting image. The flags apply only to the defined rectangles (not necessarily the whole image).

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

Syntax

Visual Basic (Declaration) 
<FlagsAttribute()>
Public Enum CombineCommandFlags 
   Inherits Enum
Visual Basic (Usage)Copy Code
Dim instance As CombineCommandFlags
C# 
[FlagsAttribute()]
public enum CombineCommandFlags : Enum 
Managed Extensions for C++ 
[FlagsAttribute()]
__value public enum CombineCommandFlags : public Enum 
C++/CLI 
[FlagsAttribute()]
public enum class CombineCommandFlags : public Enum 

Members

MemberDescription
SourceNop No change.
SourceNot Invert the color, resulting in its complement.
Source0 Change all bits to 0.
Source1 Change all bits to 1.
DestinationNop No change.
DestinationNot Invert the color, resulting in its complement.
Destination0 Change all bits to 0.
Destination1 Change all bits to 1.
OperationAnd Combine each set of bytes using a bitwise AND.
OperationOr Combine each set of bytes using a bitwise OR.
OperationXor Combine each set of bytes using a bitwise exclusive OR (^).
OperationAdd Add the byte values, allowing a maximum of 255.
OperationSubtractSource Subtract the source from the destination, allowing a minimum of 0.
OperationSubtractDestination Subtract the destination from the source, allowing a minimum of 0.
OperationMultiply Multiply the byte values, allowing a maximum of 255. The result is calculated as follows: result = (source * destination) / 255.
OperationDivideSource Divide the destination by the source. If source > 0, then the result is calculated as follows: result = min( (destination / source) * 255, 255 ). Otherwise, if source = 0, then result = 255.
OperationDivideDestination Divide the source by the destination. If dest > 0, then the result is calculated as follows: result = min( (source / destination) * 255, 255 ). Otherwise, if destination = 0, then result = 255.
OperationAverage Use the average of the two values.
OperationMinimum Use the lesser of the two values.
OperationMaximum Use the greater of the two values.
ResultNop No change.
ResultNot Invert the color, resulting in its complement.
Result0 Change all bits to 0.
Result1 Change all bits to 1.
SourceCopy Copy source to destination.
SourceMaster Perform the operation on all channels.
SourceRed Perform the operation on the red channel.
SourceGreen Perform the operation on the green channel.
SourceBlue Perform the operation on the blue channel.
DestinationMaster Perform the operation on all channels.
DestinationRed Perform the operation on the red channel.
DestinationGreen Perform the operation on the green channel.
DestinationBlue Perform the operation on the blue channel.
ResultMaster Perform the operation on all channels.
ResultRed Perform the operation on the red channel.
ResultGreen Perform the operation on the green channel.
ResultBlue Perform the operation on the blue channel.
AbsoluteDifference Calculate the Absolute difference between the two values.

Remarks

You can use a bitwise OR (|) to specify one flag from each group.
GroupFlags
Flags that define treatment of the source rectangleSourceNop, SourceNot, Source0, Source1
Flags that define treatment of the destination rectangleDestinationNop, DestinationNot, Destination0, Destination1
Flags that define the operation to use when combining the dataOperationAnd, OperationOr, OperationXor, OperationAdd, OperationSubtractSource, OperationSubtractDestination, OperationMultiply, OperationDivideSource, OperationDivideDestination, OperationAverage, OperationMinimum, OperationMaximum, AbsoluteDifference
Flags that define treatment of the resulting image rectangleResultNop, ResultNot, Result0, Result1
Flags that define the channel of the source image rectangleSourceMaster, SourceRed, SourceGreen, SourceBlue
Flags that define the channel of the destination image rectangleDestinationMaster, DestinationRed, DestinationGreen, DestinationBlue
Flags that define the channel of the resulting image rectangleResultMaster, ResultRed, ResultGreen, ResultBlue
For more information, refer to Flags for the CombineCommand.

Inheritance Hierarchy

System.Object
   System.ValueType
      System.Enum
         Leadtools.ImageProcessing.Effects.CombineCommandFlags

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