Flags for the CombineFastCommand.Flags.
[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
Value | Member | Description |
---|---|---|
0x00000000 | None | No change. Part of the group of flags that define treatment of the source rectangle. |
0x00000001 | SourceNot | Invert the color, resulting in its complement. Part of the group of flags that define treatment of the source rectangle. |
0x00000002 | Source0 | Change all bits to 0. Part of the group of flags that define treatment of the source rectangle. |
0x00000003 | Source1 | Change all bits to 1. Part of the group of flags that define treatment of the source rectangle. |
0x00000010 | DestinationNot | Invert the color, resulting in its complement. Part of the group of flags that define treatment of the destination rectangle. |
0x00000020 | Destination0 | Change all bits to 0. Part of the group of flags that define treatment of the destination rectangle. |
0x00000030 | Destination1 | Change all bits to 1. Part of the group of flags that define treatment of the destination rectangle. |
0x00000100 | OperationOr | 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. |
0x00000120 | SourceCopy | Copies the source image to the destination image. |
0x00000200 | OperationXor | 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. |
0x00000300 | OperationAdd | 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. |
0x00000400 | OperationSubtractSource | 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. |
0x00000500 | OperationSubtractDestination | 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. |
0x00000600 | OperationMultiply | 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. |
0x00000700 | OperationDivideSource | 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. |
0x00000800 | OperationDivideDestination | 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. |
0x00000900 | OperationAverage | Use the average of the two values. Part of the group of flags that define the operation to use when combining the data. |
0x00000A00 | OperationMinimum | Use the lesser of the two values. Part of the group of flags that define the operation to use when combining the data. |
0x00000B00 | OperationMaximum | Use the greater of the two values. Part of the group of flags that define the operation to use when combining the data. |
0x00001000 | ResultNot | Invert the color, resulting in its complement. Part of the group of flags that define treatment of the resulting image rectangle. |
0x00002000 | Result0 | Change all bits to 0. Part of the group of flags that define treatment of the resulting image rectangle. |
0x00003000 | Result1 | Change all bits to 1. Part of the group of flags that define treatment of the resulting image rectangle. |
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:
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.
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET