This enumeration has a System.FlagsAttribute attribute that allows a bitwise combination of its member values.
Supported in Silverlight, Windows Phone 7Visual Basic (Declaration) | |
---|---|
<FlagsAttribute()> Public Enum CombineCommandFlags Inherits System.Enum Implements IComparable, IConvertible, IFormattable |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As CombineCommandFlags |
C# | |
---|---|
[FlagsAttribute()] public enum CombineCommandFlags : System.Enum, IComparable, IConvertible, IFormattable |
C++/CLI | |
---|---|
[FlagsAttribute()] public enum class CombineCommandFlags : public System.Enum, IComparable, IConvertible, IFormattable |
Member | Description |
---|---|
AbsoluteDifference | Calculate the Absolute difference between the two values. |
Destination0 | Change all bits to 0. |
Destination1 | Change all bits to 1. |
DestinationBlue | Perform the operation on the blue channel. |
DestinationGreen | Perform the operation on the green channel. |
DestinationMaster | Perform the operation on all channels. |
DestinationNop | No change. |
DestinationNot | Invert the color, resulting in its complement. |
DestinationRed | Perform the operation on the red channel. |
OperationAdd | Add the byte values, allowing a maximum of 255. |
OperationAnd | Combine each set of bytes using a bitwise AND. |
OperationAverage | Use the average of the two values. |
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. |
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. |
OperationMaximum | Use the greater of the two values. |
OperationMinimum | Use the lesser of the two values. |
OperationMultiply | Multiply the byte values, allowing a maximum of 255. The result is calculated as follows: result = (source * destination) / 255. |
OperationOr | Combine each set of bytes using a bitwise OR. |
OperationSubtractDestination | Subtract the destination from the source, allowing a minimum of 0. |
OperationSubtractSource | Subtract the source from the destination, allowing a minimum of 0. |
OperationXor | Combine each set of bytes using a bitwise exclusive OR (^). |
RawCombine | Perform a raw combine. |
Result0 | Change all bits to 0. |
Result1 | Change all bits to 1. |
ResultBlue | Perform the operation on the blue channel. |
ResultGreen | Perform the operation on the green channel. |
ResultMaster | Perform the operation on all channels. |
ResultNop | No change. |
ResultNot | Invert the color, resulting in its complement. |
ResultRed | Perform the operation on the red channel. |
Source0 | Change all bits to 0. |
Source1 | Change all bits to 1. |
SourceBlue | Perform the operation on the blue channel. |
SourceCopy | Copy source to destination. |
SourceGreen | Perform the operation on the green channel. |
SourceMaster | Perform the operation on all channels. |
SourceNop | No change. |
SourceNot | Invert the color, resulting in its complement. |
SourceRed | Perform the operation on the red channel. |
You can use a bitwise OR (|) to specify one flag from each group.
The flags will work with the following order: First the operations on source and destination rectangles will take effect then the combining operation will be implemented, then the operation on result rectangle will take effect. 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: Silverlight 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)