LEADTOOLS (Leadtools assembly)

DitherLine(IntPtr,IntPtr) Method

Show in webframe







Pointer to the unmanaged memory input buffer.
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
public void DitherLine( 
   IntPtr srcBuffer,
   IntPtr destBuffer
)
'Declaration
 
Public Overloads Sub DitherLine( _
   ByVal srcBuffer As IntPtr, _
   ByVal destBuffer As IntPtr _
) 
'Usage
 
Dim instance As RasterImage
Dim srcBuffer As IntPtr
Dim destBuffer As IntPtr
 
instance.DitherLine(srcBuffer, destBuffer)
public void DitherLine( 
   IntPtr srcBuffer,
   IntPtr destBuffer
)

            
public void ditherLine(
  byte srcBuffer[], 
  byte destBuffer[]
)
            
 function Leadtools.RasterImage.DitherLine(IntPtr,IntPtr)( 
   srcBuffer ,
   destBuffer 
)
public:
void DitherLine( 
   IntPtr srcBuffer,
   IntPtr destBuffer
) 

Parameters

srcBuffer
Pointer to the unmanaged memory input buffer.
destBuffer
Pointer to the unmanaged memory output buffer.
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(Byte[],Int32,Byte[],Int32) 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 Introduction to Image Processing With LEADTOOLS.

Example
For an example, refer to StartDithering.
Requirements

Target Platforms

See Also

Reference

RasterImage Class
RasterImage Members
Overload List
Introduction to Image Processing With LEADTOOLS
Dithering Methods
Codecs.CodecsThumbnailOptions.DitheringMethod property
ImageProcessing.ColorResolutionCommand.DitheringMethod property
RasterDitheringMethod enumeration
RasterDefaults.DitheringMethod property
RasterImage.DitheringMethod property
RasterImage.StopDithering method
RasterImage.StartDithering method
RasterBufferConverter.Convert

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.