Leadtools Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.3.5
ResizeBuffer(IntPtr,Int32,Int32) Method
See Also 
Leadtools Namespace > RasterBufferResize Class > ResizeBuffer Method : ResizeBuffer(IntPtr,Int32,Int32) Method




buffer
The unmanaged buffer containing the original scanline to resized.
row
Current row of the original bitmap.
bitsPerPixel
Bits per pixel, which is the same for the original and the resized bitmap.
Resizes an unmanaged buffer to the new size specified with the Start method.

Syntax

Visual Basic (Declaration) 
Public Overloads Sub ResizeBuffer( _
   ByVal buffer As IntPtr, _
   ByVal row As Integer, _
   ByVal bitsPerPixel As Integer _
) 
Visual Basic (Usage)Copy Code
Dim instance As RasterBufferResize
Dim buffer As IntPtr
Dim row As Integer
Dim bitsPerPixel As Integer
 
instance.ResizeBuffer(buffer, row, bitsPerPixel)
C# 
public void ResizeBuffer( 
   IntPtr buffer,
   int row,
   int bitsPerPixel
)
Managed Extensions for C++ 
public: void ResizeBuffer( 
   IntPtr buffer,
   int row,
   int bitsPerPixel
) 
C++/CLI 
public:
void ResizeBuffer( 
   IntPtr buffer,
   int row,
   int bitsPerPixel
) 

Parameters

buffer
The unmanaged buffer containing the original scanline to resized.
row
Current row of the original bitmap.
bitsPerPixel
Bits per pixel, which is the same for the original and the resized bitmap.

Example

For an example, refer to RasterBufferResize.

Remarks

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

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