Leadtools Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.3.5
Start Method
See Also 
Leadtools Namespace > RasterImageResize Class : Start Method




image
Image to be resized.
width
New width of the image data.
height
New height of the image data.
bitsPerPixel
Output bits per pixel. Use 0 for 8-bit grayscale. Possible values are: 0, 1, 2, 3, 4, 5, 6, 7, 8, 12, 16, 24, 32, 48 and 64.
order
Output color order.
ditheringMethod
Flags that indicate the type of dithering, if bitsPerPixel is not the same as the source image.
sizeFlags
Flags that indicate the type of resizing.
palette
The palette to dither to if bitsPerPixel is less than or equal to 8. Pass a null reference (Nothing in Visual Basic) to dither to the fixed palette or if no palette is required.
Sets up information for the ResizeBuffer method.

Syntax

Visual Basic (Declaration) 
Public Sub Start( _
   ByVal image As RasterImage, _
   ByVal width As Integer, _
   ByVal height As Integer, _
   ByVal bitsPerPixel As Integer, _
   ByVal order As RasterByteOrder, _
   ByVal ditheringMethod As RasterDitheringMethod, _
   ByVal sizeFlags As RasterSizeFlags, _
   ByVal palette() As RasterColor _
) 
Visual Basic (Usage)Copy Code
Dim instance As RasterImageResize
Dim image As RasterImage
Dim width As Integer
Dim height As Integer
Dim bitsPerPixel As Integer
Dim order As RasterByteOrder
Dim ditheringMethod As RasterDitheringMethod
Dim sizeFlags As RasterSizeFlags
Dim palette() As RasterColor
 
instance.Start(image, width, height, bitsPerPixel, order, ditheringMethod, sizeFlags, palette)
Managed Extensions for C++ 
public: void Start( 
   RasterImage* image,
   int width,
   int height,
   int bitsPerPixel,
   RasterByteOrder order,
   RasterDitheringMethod ditheringMethod,
   RasterSizeFlags sizeFlags,
   RasterColor[]* palette
) 
C++/CLI 
public:
void Start( 
   RasterImage^ image,
   int width,
   int height,
   int bitsPerPixel,
   RasterByteOrder order,
   RasterDitheringMethod ditheringMethod,
   RasterSizeFlags sizeFlags,
   array<RasterColor>^ palette
) 

Parameters

image
Image to be resized.
width
New width of the image data.
height
New height of the image data.
bitsPerPixel
Output bits per pixel. Use 0 for 8-bit grayscale. Possible values are: 0, 1, 2, 3, 4, 5, 6, 7, 8, 12, 16, 24, 32, 48 and 64.
order
Output color order.
ditheringMethod
Flags that indicate the type of dithering, if bitsPerPixel is not the same as the source image.
sizeFlags
Flags that indicate the type of resizing.
palette
The palette to dither to if bitsPerPixel is less than or equal to 8. Pass a null reference (Nothing in Visual Basic) to dither to the fixed palette or if no palette is required.

Example

Remarks

ditheringMethod is used when dithering is needed to produce the output bits per pixel. The interpolation usually requires that the input data be converted to 24-bit or 48-bit and then back to the desired bits per pixel. So some dithering might be required if the output bits/pixel are less than or equal to 8.

The Start method starts the resizing process. This will be followed by calls to ResizeBuffer to retrieve the resized data and by a call to Stop, to end the resize process and clean up any allocated resources.

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