Error processing SSI file
LEADTOOLS Image File Support (Leadtools.Codecs assembly)

Show in webframe

EncodeAbic(RasterNativeBuffer,Int32,Int32,Int32,Boolean) Method








A RasterNativeBuffer object which contains the input data.
Number of bytes aligned for uncompressed input data.
Image width, in pixels.
Image height, in pixels.
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
'Declaration
 
Public Overloads Function EncodeAbic( _
   ByVal inputData As RasterNativeBuffer, _
   ByVal align As Integer, _
   ByVal width As Integer, _
   ByVal height As Integer, _
   ByVal biLevel As Boolean _
) As RasterNativeBuffer
'Usage
 
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)
public RasterNativeBuffer encodeAbic(RasterNativeBuffer inputData, int align, int width, int height, boolean biLevel)
 function Leadtools.Codecs.RasterCodecs.EncodeAbic(RasterNativeBuffer,Int32,Int32,Int32,Boolean)( 
   inputData ,
   align ,
   width ,
   height ,
   biLevel 
)

Parameters

inputData
A RasterNativeBuffer object which contains the input data.
align
Number of bytes aligned for uncompressed 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 RasterNativeBuffer object that contains the ABIC encoded data.
Remarks

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

Use DecodeAbic to decode ABIC data.

The output buffer in the 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);

Example
For an example, refer to EncodeAbic.
Requirements

Target Platforms

See Also

Reference

RasterCodecs Class
RasterCodecs Members
Overload List

Error processing SSI file