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




srcBuffer
Pointer to the unmanaged memory input buffer.
destBuffer
Pointer to the unmanaged memory output buffer.
Used in a loop, dithers the line in a specified unmanaged memory input buffer, and writes it to an unmanaged memory output buffer.

Syntax

Visual Basic (Declaration) 
Public Overloads Sub DitherLine( _
   ByVal srcBuffer As IntPtr, _
   ByVal destBuffer As IntPtr _
) 
Visual Basic (Usage)Copy Code
Dim instance As RasterImage
Dim srcBuffer As IntPtr
Dim destBuffer As IntPtr
 
instance.DitherLine(srcBuffer, destBuffer)
C# 
public void DitherLine( 
   IntPtr srcBuffer,
   IntPtr destBuffer
)
Managed Extensions for C++ 
public: void DitherLine( 
   IntPtr srcBuffer,
   IntPtr destBuffer
) 
C++/CLI 
public:
void DitherLine( 
   IntPtr srcBuffer,
   IntPtr destBuffer
) 

Parameters

srcBuffer
Pointer to the unmanaged memory input buffer.
destBuffer
Pointer to the unmanaged memory output buffer.

Example

For an example, refer to StartDithering.

Remarks

This method uses the dithering method specified in the DitheringMethod property. Therefore, it provides better 4- or 8-bit output than the RasterBufferConverter.Convert method.

This method uses the palette that the StartDithering method specifies. The output of the DitherLine method is made up of 1-, 4-, or 8-bit indexes to the specified palette. StopDithering cleans up the allocated variables and buffers. For a description of how the methods relate to each other, refer to the StartDithering.

This method does not support signed images.

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