LEADTOOLS (Leadtools assembly)

CombineFastCommandFlags Enumeration

Show in webframe







Flags for the CombineFastCommand.Flags.
Syntax
[FlagsAttribute()]
public enum CombineFastCommandFlags : System.Enum, System.IComparableSystem.IConvertibleSystem.IFormattable  
'Declaration
 
<FlagsAttribute()>
Public Enum CombineFastCommandFlags 
   Inherits System.Enum
   Implements System.IComparableSystem.IConvertibleSystem.IFormattable 
'Usage
 
Dim instance As CombineFastCommandFlags
[FlagsAttribute()]
public enum CombineFastCommandFlags : System.IComparableSystem.IConvertibleSystem.IFormattable  

            

            
Leadtools.ImageProcessing.CombineFastCommandFlags = function() { };
Leadtools.ImageProcessing.CombineFastCommandFlags.prototype = {
None = 0, SourceNot = 1, Source0 = 2, Source1 = 3, DestinationNot = 16, Destination0 = 32, Destination1 = 48, OperationOr = 256, OperationXor = 512, OperationAdd = 768, OperationSubtractSource = 1024, OperationSubtractDestination = 1280, OperationMultiply = 1536, OperationDivideSource = 1792, OperationDivideDestination = 2048, OperationAverage = 2304, OperationMinimum = 2560, OperationMaximum = 2816, ResultNot = 4096, Result0 = 8192, Result1 = 12288, };
[FlagsAttribute()]
public enum class CombineFastCommandFlags : public System.Enum, System.IComparableSystem.IConvertibleSystem.IFormattable  
Members
ValueMemberDescription
0NoneNo change. Part of the group of flags that define treatment of the source rectangle.
1SourceNotInvert the color, resulting in its complement. Part of the group of flags that define treatment of the source rectangle.
2Source0Change all bits to 0. Part of the group of flags that define treatment of the source rectangle.
3Source1Change all bits to 1. Part of the group of flags that define treatment of the source rectangle.
16DestinationNotInvert the color, resulting in its complement. Part of the group of flags that define treatment of the destination rectangle.
32Destination0Change all bits to 0. Part of the group of flags that define treatment of the destination rectangle.
48Destination1Change all bits to 1. Part of the group of flags that define treatment of the destination rectangle.
256OperationOrCombine each set of bytes using a bitwise OR ( | ). Part of the group of flags that define the operation to use when combining the data.
512OperationXorCombine each set of bytes using a bitwise exclusive OR (^). Part of the group of flags that define the operation to use when combining the data.
768OperationAddAdd the byte values, allowing a maximum of 255. Part of the group of flags that define the operation to use when combining the data.
1024OperationSubtractSourceSubtract the source from the destination, allowing a minimum of 0. Part of the group of flags that define the operation to use when combining the data.
1280OperationSubtractDestinationSubtract the destination from the source, allowing a minimum of 0. Part of the group of flags that define the operation to use when combining the data.
1536OperationMultiplyMultiply the byte values, allowing a maximum of 255. The result is calculated as follows: result = (source * dest) / 255. Part of the group of flags that define the operation to use when combining the data.
1792OperationDivideSourceDivide the destination by the source. If source > 0, then the result is calculated as follows: result = min( (dest / source) * 255, 255 ). Otherwise, if source = 0, then result = 255. Part of the group of flags that define the operation to use when combining the data.
2048OperationDivideDestinationDivide the source by the destination. If dest > 0, then the result is calculated as follows: result = min( (source / dest) * 255, 255 ). Otherwise, if dest = 0, then result = 255. Part of the group of flags that define the operation to use when combining the data.
2304OperationAverageUse the average of the two values. Part of the group of flags that define the operation to use when combining the data.
2560OperationMinimumUse the lesser of the two values. Part of the group of flags that define the operation to use when combining the data.
2816OperationMaximumUse the greater of the two values. Part of the group of flags that define the operation to use when combining the data.
4096ResultNotInvert the color, resulting in its complement. Part of the group of flags that define treatment of the resulting image rectangle.
8192Result0Change all bits to 0. Part of the group of flags that define treatment of the resulting image rectangle.
12288Result1Change all bits to 1. Part of the group of flags that define treatment of the resulting image rectangle.
Remarks

These flags are divided into four groupings: source (SRC) flags, destination (DST) flags, operation (OP) flags, and resulting image (RES) flags. The flags apply only to the defined rectangles (not necessarily the whole image). The flags are applied in the following order:

  1. Operations on the source and destination rectangles are applied. These are implemented at the same time.
  2. Combining operations are performed.
  3. Operations on the resulting rectangle are applied.

You can use a bitwise OR (|) to specify one flag from each group.

Group Flags
Flags that define treatment of the source rectangle None, SourceNot, Source0, Source1
Flags that define treatment of the destination rectangle DestinationNot, Destination0, Destination1
Flags that define the operation to use when combining the data OperationOr, OperationXor, OperationAdd, OperationSubtractSource, OperationSubtractDestination, OperationMultiply, OperationDivideSource, OperationDivideDestination, OperationAverage, OperationMinimum, OperationMaximum
Flags that define treatment of the resulting image rectangle ResultNot, Result0, Result1, SourceCopy

For more options use Leadtools.ImageProcessing.Effects.CombineCommand.

Inheritance Hierarchy

System.Object
   System.ValueType
      System.Enum
         Leadtools.ImageProcessing.CombineFastCommandFlags

Requirements

Target Platforms

See Also

Reference

Leadtools.ImageProcessing Namespace

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.