Visual Basic (Declaration) | |
---|---|
Public Class ResizeCommand Inherits RasterCommand Implements IRasterCommand |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public class ResizeCommand : RasterCommand, IRasterCommand |
C++/CLI | |
---|---|
public ref class ResizeCommand : public RasterCommand, IRasterCommand |
This example will load an image then resize into an existing smaller image
Visual Basic | Copy Code |
---|---|
Public Sub ResizeCommandExample() |
C# | Copy Code |
---|---|
public void ResizeCommandExample() |
The ResizeCommand command works by resizing the image data passed to the RasterCommand.Run method into the image passed to the DestinationImage property.
The destination image must be intialized with the correct RasterImage.Width and RasterImage.Height of the new, resized image.
This command does not change the source image passed to the RasterCommand.Run method. If you want to resize an image without creating a new version, use the SizeCommand.
For more information, refer to Introduction to Image Processing With LEADTOOLS.
System.Object
Leadtools.ImageProcessing.RasterCommand
Leadtools.ImageProcessing.ResizeCommand
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family