Visual Basic (Declaration) | |
---|---|
Public Class DisplacementCommand Inherits RasterCommand Implements IRasterCommand |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public class DisplacementCommand : RasterCommand, IRasterCommand |
Managed Extensions for C++ | |
---|---|
public __gc class DisplacementCommand : public RasterCommand, IRasterCommand |
C++/CLI | |
---|---|
public ref class DisplacementCommand : public RasterCommand, IRasterCommand |
Visual Basic | Copy Code |
---|---|
ImageProcessing.Effects.DisplacementCommand |
C# | Copy Code |
---|---|
ImageProcessing.Effects.DisplacementCommand |
This command shifts image pixels according to the values of the displacement map. Red values in the displacement map shift the original pixels horizontally. Green values in the displacement map shift the original values vertically. Blue values are ignored. A displacement map value of 128 means not to shift anything. A displacement map value of 0 means to shift pixels the complete vertical or horizontal percentage, to the left or down. A displacement map value of 255 means to shift pixels the complete vertical or horizontal percentage, to the right or up. Displacement maps modify the geometry of the object. As a result, pixel shifts and forms may be added to the image, and the image may be warped or distorted. As an example, if you use the following image:
And you were to use the following image as your displacement map:
And you were to call DisplacementCommand using the following settings:Parameter Value HorizontalFactor 17 VerticalFactor 24 FillColor na Flags DisplacementCommandFlags.NoChange | DisplacementCommandFlags.StretchToFit
The following figure results:This command 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 signed data images. This command does not support 32-bit grayscale images.
System.Object
Leadtools.ImageProcessing.RasterCommand
Leadtools.ImageProcessing.Effects.DisplacementCommand
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
DisplacementCommand MembersLeadtools.ImageProcessing.Effects Namespace
Removing Noise
AddNoiseCommand Class
EmbossCommand Class
MosaicCommand Class
MotionBlurCommand Class
OilifyCommand Class
PosterizeCommand
RemoveRedEyeCommand
SolarizeCommand
BendCommand
CylinderCommand
FreeHandShearCommand
FreeHandWaveCommand
PixelateCommand
ImpressionistCommand
PolarCommand
RadialBlurCommand
RadialWaveCommand
RippleCommand
SphereCommand
SwirlCommand
WindCommand
ZoomBlurCommand
ZoomWaveCommand
BumpMapCommand
CubismCommand Class
DrawStarCommand
DryCommand
FreePlaneBendCommand
FreeRadialBendCommand
GlassEffectCommand
GlowCommand
LensFlareCommand
LightCommand
OceanCommand
PlaneBendCommand
PlaneCommand
SampleTargetCommand
TunnelCommand