Leadtools.ImageProcessing.SpecialEffects Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
IntelligentDownScaleCommand Constructor(RasterImage,RasterColor,RasterColor,Boolean,Boolean,Int32,Int32,Int32)
See Also 
Leadtools.ImageProcessing.SpecialEffects Namespace > IntelligentDownScaleCommand Class > IntelligentDownScaleCommand Constructor : IntelligentDownScaleCommand Constructor(RasterImage,RasterColor,RasterColor,Boolean,Boolean,Int32,Int32,Int32)



maskImage
RasterImage object that references mask image.
removeObjectColor
RasterColor value that specifies color of the area in the mask image in order to be removed and it has to be different than the rest of the image colors. If no remove color exist, then pass null.
preserveObjectColor
RasterColor value that specifies color of the area in the mask image in order to be removed and it has to be different than the rest of the image colors. If no remove color exist, then pass null.
useRemoveObjectColor
true to use the removeObjectColor parameter false otherwise.
usePreserveObjectColor
true to use the removeObjectColor parameter false otherwise.
newWidth
New width. Range from 1 to width of the image -1.
newHeight
New height. Range from 1 to height of the image -1.
downScalingOrder
value that determine whether the processing will start with the width first then the height or vice versa. Pass 0 to start with the height, pass 1 to start with the width.
Initializes a new IntelligentDownScaleCommand class object with explicit parameters.

Syntax

Visual Basic (Declaration)  
Public Function New( _
   ByVal maskImage As RasterImage, _
   ByVal removeObjectColor As RasterColor, _
   ByVal preserveObjectColor As RasterColor, _
   ByVal useRemoveObjectColor As Boolean, _
   ByVal usePreserveObjectColor As Boolean, _
   ByVal newWidth As Integer, _
   ByVal newHeight As Integer, _
   ByVal downScalingOrder As Integer _
)
Visual Basic (Usage) Copy Code
Dim maskImage As RasterImage
Dim removeObjectColor As RasterColor
Dim preserveObjectColor As RasterColor
Dim useRemoveObjectColor As Boolean
Dim usePreserveObjectColor As Boolean
Dim newWidth As Integer
Dim newHeight As Integer
Dim downScalingOrder As Integer
 
Dim instance As IntelligentDownScaleCommand(maskImage, removeObjectColor, preserveObjectColor, useRemoveObjectColor, usePreserveObjectColor, newWidth, newHeight, downScalingOrder)
C#  
public IntelligentDownScaleCommand( 
   RasterImage maskImage,
   RasterColor removeObjectColor,
   RasterColor preserveObjectColor,
   bool useRemoveObjectColor,
   bool usePreserveObjectColor,
   int newWidth,
   int newHeight,
   int downScalingOrder
)
C++/CLI  
public:
IntelligentDownScaleCommand( 
   RasterImage maskImage,
   RasterColor removeObjectColor,
   RasterColor preserveObjectColor,
   bool useRemoveObjectColor,
   bool usePreserveObjectColor,
   int newWidth,
   int newHeight,
   int downScalingOrder
)

Parameters

maskImage
RasterImage object that references mask image.
removeObjectColor
RasterColor value that specifies color of the area in the mask image in order to be removed and it has to be different than the rest of the image colors. If no remove color exist, then pass null.
preserveObjectColor
RasterColor value that specifies color of the area in the mask image in order to be removed and it has to be different than the rest of the image colors. If no remove color exist, then pass null.
useRemoveObjectColor
true to use the removeObjectColor parameter false otherwise.
usePreserveObjectColor
true to use the removeObjectColor parameter false otherwise.
newWidth
New width. Range from 1 to width of the image -1.
newHeight
New height. Range from 1 to height of the image -1.
downScalingOrder
value that determine whether the processing will start with the width first then the height or vice versa. Pass 0 to start with the height, pass 1 to start with the width.

Example

For an example, refer to IntelligentDownScaleCommand.

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