Leadtools Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.3.5
SizeCommand Class
See Also  Members  
Leadtools.ImageProcessing Namespace : SizeCommand Class




Resizes an image to a new width and height.

Syntax

Visual Basic (Declaration) 
Public Class SizeCommand 
   Inherits RasterCommand
   Implements IRasterCommand 
Visual Basic (Usage)Copy Code
Dim instance As SizeCommand
C# 
public class SizeCommand : RasterCommand, IRasterCommand  
Managed Extensions for C++ 
public __gc class SizeCommand : public RasterCommand, IRasterCommand  
C++/CLI 
public ref class SizeCommand : public RasterCommand, IRasterCommand  

Example

This example will convert an image to a thumbnail size before saving it to disk.

Remarks

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 Processing an Image.

Inheritance Hierarchy

System.Object
   Leadtools.ImageProcessing.RasterCommand
      Leadtools.ImageProcessing.SizeCommand

Requirements

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

See Also