Leadtools Namespace > RasterBufferResize Class > ResizeBuffer Method : ResizeBuffer(IntPtr,Int32,Int32) Method |
'Declaration Public Overloads Sub ResizeBuffer( _ ByVal buffer As IntPtr, _ ByVal row As Integer, _ ByVal bitsPerPixel As Integer _ )
'Usage Dim instance As RasterBufferResize Dim buffer As IntPtr Dim row As Integer Dim bitsPerPixel As Integer instance.ResizeBuffer(buffer, row, bitsPerPixel)
function Leadtools.RasterBufferResize.ResizeBuffer(IntPtr,Int32,Int32)( buffer , row , bitsPerPixel )
buffer contains the buffer containing a line from the original image to be resized. Your code must allocate the buffer and copy the data into it before calling this method.
The same buffer holds the data before and after it is resized. Therefore, the buffer must be big enough to hold whichever is larger. (The original line is larger when reducing an image; the resulting line is larger when enlarging the image.)
Before calling this function, you must call the Start method.
When all lines have been processed, you must call the Stop method.
For more information, refer to Introduction to Image Processing With LEADTOOLS.
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