←Select platform

CombineFastCommandFlags Enumeration

Summary
Flags for the CombineFastCommand.Flags.
Syntax
C#
Objective-C
C++/CLI
Python
[FlagsAttribute()] 
public enum CombineFastCommandFlags 
typedef NS_OPTIONS(NSUInteger, LTCombineFastCommandFlags) 
[FlagsAttribute()] 
public enum class CombineFastCommandFlags   
class CombineFastCommandFlags(Enum): 
   None = 0 
   SourceNot = 1 
   Source0 = 2 
   Source1 = 3 
   DestinationNot = 16 
   Destination0 = 32 
   Destination1 = 48 
   OperationOr = 256 
   SourceCopy = 288 
   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 
Members
ValueMemberDescription
0x00000000None No change. Part of the group of flags that define treatment of the source rectangle.
0x00000001SourceNot Invert the color, resulting in its complement. Part of the group of flags that define treatment of the source rectangle.
0x00000002Source0 Change all bits to 0. Part of the group of flags that define treatment of the source rectangle.
0x00000003Source1 Change all bits to 1. Part of the group of flags that define treatment of the source rectangle.
0x00000010DestinationNot Invert the color, resulting in its complement. Part of the group of flags that define treatment of the destination rectangle.
0x00000020Destination0 Change all bits to 0. Part of the group of flags that define treatment of the destination rectangle.
0x00000030Destination1 Change all bits to 1. Part of the group of flags that define treatment of the destination rectangle.
0x00000100OperationOr Combine each set of bytes using a bitwise OR ( ¦ ). Part of the group of flags that define the operation to use when combining the data.
0x00000120SourceCopy Copies the source image to the destination image.
0x00000200OperationXor Combine 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.
0x00000300OperationAdd Add the byte values, allowing a maximum of 255. Part of the group of flags that define the operation to use when combining the data.
0x00000400OperationSubtractSource Subtract 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.
0x00000500OperationSubtractDestination Subtract 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.
0x00000600OperationMultiply Multiply 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.
0x00000700OperationDivideSource Divide 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.
0x00000800OperationDivideDestination Divide 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.
0x00000900OperationAverage Use the average of the two values. Part of the group of flags that define the operation to use when combining the data.
0x00000A00OperationMinimum Use the lesser of the two values. Part of the group of flags that define the operation to use when combining the data.
0x00000B00OperationMaximum Use the greater of the two values. Part of the group of flags that define the operation to use when combining the data.
0x00001000ResultNot Invert the color, resulting in its complement. Part of the group of flags that define treatment of the resulting image rectangle.
0x00002000Result0 Change all bits to 0. Part of the group of flags that define treatment of the resulting image rectangle.
0x00003000Result1 Change 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 CombineCommand.

Requirements

Target Platforms

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools Assembly

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.