| Visual Basic (Declaration) | |
|---|---|
Public Class SizeCommand Inherits RasterCommand Implements IRasterCommand | |
| Visual Basic (Usage) | Copy Code |
|---|---|
| |
| C# | |
|---|---|
public class SizeCommand : RasterCommand, IRasterCommand | |
| C++/CLI | |
|---|---|
public ref class SizeCommand : public RasterCommand, IRasterCommand | |
This example will convert an image to a thumbnail size before saving it to disk.
| Visual Basic | Copy Code |
|---|---|
Public Sub SizeCommandExample() | |
| C# | Copy Code |
|---|---|
public void SizeCommandExample() | |
This command resizes the image passed to the RasterCommand.Run method. If you want to keep the original-size image and create a new resized version, use ResizeCommand.
For more information, refer to Introduction to Image Processing With LEADTOOLS.
System.Object
Leadtools.ImageProcessing.RasterCommand
Leadtools.ImageProcessing.SizeCommand
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family