Visual Basic (Declaration) | |
---|---|
Public Class InvertCommand Inherits RasterCommand Implements IRasterCommand |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public class InvertCommand : RasterCommand, IRasterCommand |
C++/CLI | |
---|---|
public ref class InvertCommand : public RasterCommand, IRasterCommand |
Run the InvertCommand on an image.
Visual Basic | Copy Code |
---|---|
Public Sub InvertCommandExample() |
C# | Copy Code |
---|---|
public void InvertCommandExample() |
This class can also be used to invert the color of a 1-bit image, making the black white and the white black. This class supports 12 and 16-bit grayscale and 48 and 64-bit color images. Support for 12 and 16-bit grayscale and 48 and 64-bit color images is available only in the Document/Medical toolkits. This command does not support 32-bit grayscale images. This command supports signed data images.
This command changes the image data. If the image has a LUT, the command will work on the LUT not the image data. If the image has a LUT and you want to work on the image data, first disable the use of the LUT by setting the UseLookupTable Property to FALSE. After you are finished applying the command, restore the use of the LUT by setting the UseLookupTable Property to TRUE again. See the following snippet:
image.UseLookupTable = FALSE;
InvertCmd.Run(image);
image.UseLookupTable = TRUE;
For more information, refer to Correcting Colors.System.Object
Leadtools.ImageProcessing.RasterCommand
Leadtools.ImageProcessing.Color.InvertCommand
Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
Reference
InvertCommand MembersLeadtools.ImageProcessing.Color Namespace
Correcting Colors
ChangeIntensityCommand Class
GammaCorrectCommand Class
ChangeContrastCommand Class
HistogramContrastCommand Class
StretchIntensityCommand Class
RemapIntensityCommand Class
ChangeHueCommand Class
ChangeSaturationCommand Class
HistogramEqualizeCommand Class
FillCommand
HistogramCommand Class
WindowLevelCommand
ChannelMixerCommand Class
DeinterlaceCommand
DesaturateCommand Class
EdgeDetectStatisticalCommand
LightControlCommand Class
SmoothEdgesCommand
LocalHistogramEqualizeCommand Class
AddWeightedCommand Class
ColorMergeCommand Class
ColorSeparateCommand Class
MultiplyCommand Class
AutoColorLevelCommand Class
ColorLevelCommand Class
CorrelationListCommand
GrayScaleToDuotoneCommand Class
GrayScaleToMultitoneCommand Class
HolePunchRemoveCommand
SelectiveColorCommand Class
SkeletonCommand
ChangeHueSaturationIntensityCommand Class
ColorReplaceCommand Class
ColorThresholdCommand Class
MathematicalFunctionCommand Class
SegmentCommand Class
AdaptiveContrastCommand Class
ApplyMathematicalLogicCommand Class
ColorIntensityBalanceCommand Class
ColorizeGrayCommand
ContrastBrightnessIntensityCommand Class
DigitalSubtractCommand
DynamicBinaryCommand Class
EdgeDetectEffectCommand
FunctionalLightCommand
MultiscaleEnhancementCommand
SelectDataCommand
ShiftDataCommand
AdjustTintCommand Class
HalfToneCommand