Visual Basic (Declaration) | |
---|---|
Public Class CombineWarpCommand Inherits RasterCommand Implements IRasterCommand |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public class CombineWarpCommand : RasterCommand, IRasterCommand |
Managed Extensions for C++ | |
---|---|
public __gc class CombineWarpCommand : public RasterCommand, IRasterCommand |
C++/CLI | |
---|---|
public ref class CombineWarpCommand : public RasterCommand, IRasterCommand |
You can warp the entire source image, or a portion of the source image. To warp a portion of the source image, set SourceRectangle accordingly. To warp the entire source image, set the following:
CombineWarp.Command.SourceRectangle = new Rectangle(0, 0, RasterImage.Width, RasterImage.Height);
The warp area in the destination image is specified in SetDestinationPoints. The polygon specified in SetDestinationPoints must:
Be concave Fit entirely on the destination bitmap
If either of these conditions is false, this class will throw an exception.
The ordering of the points in SetDestinationPoints can affect the resulting warp. For example, if the source image is the following:
then ordering the points in SetDestinationPoints as shown below results in the following warp:
while ordering the points in SetDestinationPoints as shown below, results in the following warp:
The CombineWarpCommand works by combining the image in the DestinationImage property with the image passed to the RasterCommand.Run method. The DestinationImage will then hold the result of the combine operation..
For more information, refer to Processing an Image.
This command does not support signed data images.
System.Object
Leadtools.ImageProcessing.RasterCommand
Leadtools.ImageProcessing.CombineWarpCommand
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