Visual Basic (Declaration) | |
---|---|
Public Class SampleTargetCommand Inherits RasterCommand Implements IRasterCommand |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public class SampleTargetCommand : RasterCommand, IRasterCommand |
C++/CLI | |
---|---|
public ref class SampleTargetCommand : public RasterCommand, IRasterCommand |
Run the SampleTargetCommand on an image.
Visual Basic | Copy Code |
---|---|
Public Sub SampleTargetCommandExample() |
C# | Copy Code |
---|---|
public void SampleTargetCommandExample() |
For example, suppose you are working with a color image. In the SampleColor property or the sampleColor parameter, set the red value portion of the RasterColor structure to 125, the green portion to 165 and the blue portion to 100. In the TargetColor property or the targetColor parameter you set the red value portion to 170, the green to 120 and the blue to 200. If you set SampleTargetCommandFlags.Blue in the Flags property or the flags parameter, then for every pixel in the image that has a blue value of 100, that blue value will be changed to 200, thus shifting the colors in the image. Depending on whether you set SampleTargetCommandFlags.Low, SampleTargetCommandFlags.Mid, or SampleTargetCommandFlags.High, either the shadow values in the blue channel will be remapped, or the midtone values in the blue channel will be remapped, or the highlight values in the blue channel will be remapped. This command supports 12 and 16-bit grayscale and 48 and 64-bit color images. For gray scale images the gray value of the SampleColor and TargetColor properties or the sampleColor and targetColor parameters are used, and the different channel flags have the same effect since it works on the same channel (gray channel). 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 signed data images. This command does not support 32-bit grayscale images.
For more information, refer to Correcting Colors.
System.Object
Leadtools.ImageProcessing.RasterCommand
Leadtools.ImageProcessing.Color.SampleTargetCommand
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
SampleTargetCommand MembersLeadtools.ImageProcessing.Color Namespace
Introduction to Image Processing With LEADTOOLS
Correcting Colors
AddNoiseCommand
EmbossCommand
MosaicCommand
MotionBlurCommand
OilifyCommand
PosterizeCommand Class
RemoveRedEyeCommand Class
SolarizeCommand Class
BumpMapCommand
CubismCommand
DrawStarCommand
GlowCommand
FreePlaneBendCommand
DryCommand
OceanCommand
GlassEffectCommand
LensFlareCommand
LightCommand
FreeRadialBendCommand
PlaneBendCommand
PlaneCommand
TunnelCommand
BendCommand
CylinderCommand
FreeHandShearCommand
FreeHandWaveCommand
ImpressionistCommand
PixelateCommand
PolarCommand
PunchCommand
RadialBlurCommand
RadialWaveCommand
RippleCommand
SphereCommand
SwirlCommand
WaveCommand
WindCommand
ZoomBlurCommand
ZoomWaveCommand
AdjustTintCommand Class
ColorHalftoneCommand