Visual Basic (Declaration) | |
---|---|
Public Class PlaneBendCommand Inherits RasterCommand Implements IRasterCommand |
Visual Basic (Usage) | ![]() |
---|---|
|
C# | |
---|---|
public class PlaneBendCommand : RasterCommand, IRasterCommand |
C++/CLI | |
---|---|
public ref class PlaneBendCommand : public RasterCommand, IRasterCommand |
Run the PlaneBendCommand on an image.
Visual Basic | ![]() |
---|---|
Public Sub PlaneBendCommandExample() |
C# | ![]() |
---|---|
public void PlaneBendCommandExample() |
This command shows the effect of placing images on planes along the Z-axis and bending them toward a specific point. These images may be placed above, below, to the left or to the right of the Z-axis. An external light source of the specified color and brightness may be shined on the images. The brightness may vary along the z-axis according to the bright length value. The line of images may be bent toward a specific point by setting a bending value. By changing the center point and the viewing screen Z-offset, you can simulate moving along the axis. If the image has a region, the effect will be applied on the region dimensions only. For an example, see the following figure:
The following figure shows the same image, after the effect has been applied:
To obtain this effect, the following settings were used with the method:
CenterPoint = new Point(640, 256) ZValue = 0 Distance = 256 PlaneOffset = 256 Repeat = -1 PyramidAngle = 0 Stretch = 100 BendFactor = 500 StartBright = 0 EndBright = 0 BrightLength = 50 BrightColor = new RasterColor(255, 255, 255) FillColor = new RasterColor(0, 0, 0) Flags = PlaneCommandFlags.Down | PlaneCommandFlags.Color This command does not support 32-bit grayscale images.
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.
For more information, refer to Correcting Colors.
System.Object
Leadtools.ImageProcessing.RasterCommand
Leadtools.ImageProcessing.SpecialEffects.PlaneBendCommand
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