Visual Basic (Declaration) | |
---|---|
Public Enum ApplyMathematicalLogicCommandBitmapEffectsFlags Inherits Enum |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public enum ApplyMathematicalLogicCommandBitmapEffectsFlags : Enum |
C++/CLI | |
---|---|
public enum class ApplyMathematicalLogicCommandBitmapEffectsFlags : public Enum |
XAML Attributes Usage | |
---|---|
<object property=EnumerationValue .../> |
XAML Attributes Usage | |
---|---|
<object property=EnumerationValue .../> |
Member | Description |
---|---|
Master | All channels. |
Red | Red channel only. |
Green | Green channel only. |
Blue | Blue channel only. |
ValueDoNothing | No change. |
ValueNot | Invert the color, resulting in its complement. |
ValueZero | Change all bits to 0. |
ValueOne | Change all bits to 1. |
OperationAnd | Combine each pixel component value and the Factor property using a bitwise AND (&). (pixel = pixel & Factor) |
OperationOr | Combine each pixel component value and the Factor property using a bitwise OR (|). (pixel = pixel | Factor) |
OperationXor | Combine each pixel component value and the Factor property using a bitwise XOR (^). (pixel = pixel ^ Factor) |
OperationAdd | Add pixel component value to the Factor property, clamping the result to the maximum allowed pixel value. (pixel = min(pixel + Factor, MaximumPixelValue) ) |
OperationSubtractFactor | Subtract each pixel component value from the Factor property, clamping the result to the allowed pixel range. (pixel = min(max(Factor - pixel, MinimumPixelValue), MaximumPixelValue) ) |
OperationSubtractValue | Subtract the Factor property from each pixel component value, clamping the result to the allowed pixel range. (pixel = min(max(pixel – Factor), MinimumPixelValue, MaximumPixelValue) ) |
OperationAbsoluteDifference | Calculate the Absolute difference between the Factor property and each pixel component value. (pixel = abs(pixel – Factor)) |
OperationMultiply | Multiply each pixel component value by Factor/100. (pixel = pixel * Factor / 100) |
OperationDivisionByFactor | Divide each pixel component value by Factor/100. An error will be returned if Factor = 0. (pixel = pixel * 100 / Factor) |
OperationDivisionByValue | Divide the Factor property by each pixel value. If the pixel value is 0, the result is set to the maximum allowed pixel value. (pixel = pixel ? min(Factor / pixel, MaximumPixelValue) : MaximumPixelValue) |
OperationAverage | Use the average of the each pixel component value and the Factor property. (pixel = (pixel+Factor) / 2). |
OperationMinimum | Use the lesser of the pixel component values and the Factor property. (pixel = min(pixel, Factor) ) |
OperationMaximum | Use the greater of the pixel component values and the Factor property. (pixel = max(pixel, Factor) ) |
ResultDoNothing | No change. |
ResultNot | Invert the color, resulting in its complement. |
ResultZero | Change all bits to 0. |
ResultOne | Change all bits to 1. |
System.Object
System.ValueType
System.Enum
Leadtools.Windows.Media.Effects.Color.ApplyMathematicalLogicCommandBitmapEffectsFlags
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Vista, Windows Server 2003 family, Windows Server 2008 family