←Select platform

CombineFastCommandFlags Enumeration

Summary

Flags for the CombineFastCommand.Flags.

Syntax

C#
VB
Objective-C
WinRT C#
C++
[FlagsAttribute()] 
public enum CombineFastCommandFlags 
<FlagsAttribute()> 
Public Enum CombineFastCommandFlags  
    
    
[FlagsAttribute()] 
public enum CombineFastCommandFlags    
typedef NS_OPTIONS(NSUInteger, LTCombineFastCommandFlags) 
Leadtools.ImageProcessing.CombineFastCommandFlags = function() { }; 
Leadtools.ImageProcessing.CombineFastCommandFlags.prototype = {<br/> 
  LeadtoolsMemberMarker(replace me) 
 }; 
[FlagsAttribute()] 
public enum class CombineFastCommandFlags   

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 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools Assembly