Leadtools Namespace > RasterImageResize Class : Start Method |
public void Start( RasterImage image, int width, int height, int bitsPerPixel, RasterByteOrder order, RasterDitheringMethod ditheringMethod, RasterSizeFlags sizeFlags, RasterColor[] palette )
'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 _ )
'Usage 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)
public void Start( RasterImage image, int width, int height, int bitsPerPixel, RasterByteOrder order, RasterDitheringMethod ditheringMethod, RasterSizeFlags sizeFlags, RasterColor[] palette )
function Leadtools.RasterImageResize.Start( image , width , height , bitsPerPixel , order , ditheringMethod , sizeFlags , palette )
public: void Start( RasterImage^ image, int width, int height, int bitsPerPixel, RasterByteOrder order, RasterDitheringMethod ditheringMethod, RasterSizeFlags sizeFlags, array<RasterColor>^ palette )
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(Int32,Int32,Byte[],Int32,Int32) to retrieve the resized data and by a call to Stop, to end the resize process and clean up any allocated resources.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2