This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.
Visual Basic (Declaration) | |
---|---|
<FlagsAttribute()> Public Enum CombineCommandFlags Inherits Enum |
Visual Basic (Usage) | Copy Code |
---|---|
|
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 |
Member | Description |
---|---|
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. |
You can use a bitwise OR (|) to specify one flag from each group.
For more information, refer to Flags for the CombineCommand.
Group | Flags |
Flags that define treatment of the source rectangle | SourceNop, SourceNot, Source0, Source1 |
Flags that define treatment of the destination rectangle | DestinationNop, DestinationNot, Destination0, Destination1 |
Flags that define the operation to use when combining the data | OperationAnd, OperationOr, OperationXor, OperationAdd, OperationSubtractSource, OperationSubtractDestination, OperationMultiply, OperationDivideSource, OperationDivideDestination, OperationAverage, OperationMinimum, OperationMaximum, AbsoluteDifference |
Flags that define treatment of the resulting image rectangle | ResultNop, ResultNot, Result0, Result1 |
Flags that define the channel of the source image rectangle | SourceMaster, SourceRed, SourceGreen, SourceBlue |
Flags that define the channel of the destination image rectangle | DestinationMaster, DestinationRed, DestinationGreen, DestinationBlue |
Flags that define the channel of the resulting image rectangle | ResultMaster, ResultRed, ResultGreen, ResultBlue |
System.Object
System.ValueType
System.Enum
Leadtools.ImageProcessing.Effects.CombineCommandFlags
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