LEADTOOLS Image Processing (Leadtools.ImageProcessing.Effects assembly)

CombineCommandFlags Enumeration

Show in webframe







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 System.FlagsAttribute attribute that allows a bitwise combination of its member values.

Syntax
'Declaration
 
<FlagsAttribute()>
Public Enum CombineCommandFlags 
   Inherits System.Enum
   Implements System.IComparableSystem.IConvertibleSystem.IFormattable 
'Usage
 
Dim instance As CombineCommandFlags
[FlagsAttribute()]
public enum CombineCommandFlags : System.IComparableSystem.IConvertibleSystem.IFormattable  
enum LTCombineCommandFlags
public enum CombineCommandFlags
Leadtools.ImageProcessing.Effects.CombineCommandFlags = function() { };
Leadtools.ImageProcessing.Effects.CombineCommandFlags.prototype = {
DestinationNop = 0x00000000, DestinationMaster = 0x00000000, SourceMaster = 0x00000000, ResultNop = 0x00000000, OperationAnd = 0x00000000, ResultMaster = 0x00000000, SourceNop = 0x00000000, SourceNot = 0x00000001, Source0 = 0x00000002, Source1 = 0x00000003, DestinationNot = 0x00000010, Destination0 = 0x00000020, Destination1 = 0x00000030, OperationOr = 0x00000100, SourceCopy = 0x00000120, OperationXor = 0x00000200, OperationAdd = 0x00000300, OperationSubtractSource = 0x00000400, OperationSubtractDestination = 0x00000500, OperationMultiply = 0x00000600, OperationDivideSource = 0x00000700, OperationDivideDestination = 0x00000800, OperationAverage = 0x00000900, OperationMinimum = 0x00000A00, OperationMaximum = 0x00000B00, AbsoluteDifference = 0x00000C00, ResultNot = 0x00001000, Result0 = 0x00002000, Result1 = 0x00003000, SourceRed = 0x00010000, SourceGreen = 0x00020000, SourceBlue = 0x00030000, DestinationRed = 0x00100000, DestinationGreen = 0x00200000, DestinationBlue = 0x00300000, ResultRed = 0x01000000, ResultGreen = 0x02000000, ResultBlue = 0x03000000, RawCombine = 0x04000000, };
[FlagsAttribute()]
public enum class CombineCommandFlags : public System.Enum, System.IComparableSystem.IConvertibleSystem.IFormattable  
Members
ValueMemberDescription
0x00000000DestinationNopNo change.
0x00000000DestinationMasterPerform the operation on all channels.
0x00000000SourceMasterPerform the operation on all channels.
0x00000000ResultNopNo change.
0x00000000OperationAndCombine each set of bytes using a bitwise AND.
0x00000000ResultMasterPerform the operation on all channels.
0x00000000SourceNopNo change.
0x00000001SourceNotInvert the color, resulting in its complement.
0x00000002Source0Change all bits to 0.
0x00000003Source1Change all bits to 1.
0x00000010DestinationNotInvert the color, resulting in its complement.
0x00000020Destination0Change all bits to 0.
0x00000030Destination1Change all bits to 1.
0x00000100OperationOrCombine each set of bytes using a bitwise OR.
0x00000120SourceCopyCopy source to destination.
0x00000200OperationXorCombine each set of bytes using a bitwise exclusive OR (^).
0x00000300OperationAddAdd the byte values, allowing a maximum of 255.
0x00000400OperationSubtractSourceSubtract the source from the destination, allowing a minimum of 0.
0x00000500OperationSubtractDestinationSubtract the destination from the source, allowing a minimum of 0.
0x00000600OperationMultiplyMultiply the byte values, allowing a maximum of 255. The result is calculated as follows: result = (source * destination) / 255.
0x00000700OperationDivideSourceDivide 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.
0x00000800OperationDivideDestinationDivide 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.
0x00000900OperationAverageUse the average of the two values.
0x00000A00OperationMinimumUse the lesser of the two values.
0x00000B00OperationMaximumUse the greater of the two values.
0x00000C00AbsoluteDifferenceCalculate the Absolute difference between the two values.
0x00001000ResultNotInvert the color, resulting in its complement.
0x00002000Result0Change all bits to 0.
0x00003000Result1Change all bits to 1.
0x00010000SourceRedPerform the operation on the red channel.
0x00020000SourceGreenPerform the operation on the green channel.
0x00030000SourceBluePerform the operation on the blue channel.
0x00100000DestinationRedPerform the operation on the red channel.
0x00200000DestinationGreenPerform the operation on the green channel.
0x00300000DestinationBluePerform the operation on the blue channel.
0x01000000ResultRedPerform the operation on the red channel.
0x02000000ResultGreenPerform the operation on the green channel.
0x03000000ResultBluePerform the operation on the blue channel.
0x04000000RawCombinePerform a raw combine.
Remarks
You can use a bitwise OR (|) to specify one flag from each group.
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
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.
Inheritance Hierarchy

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

Requirements

Target Platforms

See Also

Reference

Leadtools.ImageProcessing.Effects Namespace

 

 


Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.