LEADTOOLS Image File Support (Leadtools.Codecs assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
EncodeAbic(RasterNativeBuffer,Int32,Int32,Int32,Boolean) Method
See Also 
Leadtools.Codecs Namespace > RasterCodecs Class > EncodeAbic Method : EncodeAbic(RasterNativeBuffer,Int32,Int32,Int32,Boolean) Method



inputData
A Leadtools.RasterNativeBuffer object which contains the input data.
align
Number of bytes aligned for uncompresed input data.
width
Image width, in pixels.
height
Image height, in pixels.
biLevel
true to indicate bi-level encoding, false to indicate 4-bit grayscale encoding.
inputData
A Leadtools.RasterNativeBuffer object which contains the input data.
align
Number of bytes aligned for uncompresed input data.
width
Image width, in pixels.
height
Image height, in pixels.
biLevel
true to indicate bi-level encoding, false to indicate 4-bit grayscale encoding.
Encodes the input raw unmanaged memory data using the ABIC encoder.

Syntax

Visual Basic (Declaration) 
Overloads Public Function EncodeAbic( _
   ByVal inputData As RasterNativeBuffer, _
   ByVal align As Integer, _
   ByVal width As Integer, _
   ByVal height As Integer, _
   ByVal biLevel As Boolean _
) As RasterNativeBuffer
Visual Basic (Usage)Copy Code
Dim instance As RasterCodecs
Dim inputData As RasterNativeBuffer
Dim align As Integer
Dim width As Integer
Dim height As Integer
Dim biLevel As Boolean
Dim value As RasterNativeBuffer
 
value = instance.EncodeAbic(inputData, align, width, height, biLevel)
C# 
public RasterNativeBuffer EncodeAbic( 
   RasterNativeBuffer inputData,
   int align,
   int width,
   int height,
   bool biLevel
)
C++/CLI 
public:
RasterNativeBuffer EncodeAbic( 
   RasterNativeBuffer inputData,
   int align,
   int width,
   int height,
   bool biLevel
) 

Parameters

inputData
A Leadtools.RasterNativeBuffer object which contains the input data.
align
Number of bytes aligned for uncompresed input data.
width
Image width, in pixels.
height
Image height, in pixels.
biLevel
true to indicate bi-level encoding, false to indicate 4-bit grayscale encoding.

Return Value

A Leadtools.RasterNativeBuffer object that contains the ABIC encoded data.

Example

Remarks

Call this method to compress the input raw data to 1-bit bi-level or 4-bit grayscale ABIC data.

Use DecodeAbic(Byte[],Int32,Int32,Int32,Boolean) to decode ABIC data.

The output buffer in the Leadtools.RasterNativeBuffer object returned is allocated automatically by this method. The user is responsible to free this unmanaged memory buffer by calling Marshal.FreeHGlobal as follows:

            RasterNativeBuffer buffer = rasterCodecsObject.EncodeAbic(...
            // Use buffer
            Marshal.FreeHGlobal(buffer.Data);
            

Requirements

Target Platforms: Silverlight, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)

See Also