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 |
---|---|
|
C# | |
---|---|
public RasterNativeBuffer EncodeAbic( RasterNativeBuffer inputData, int align, int width, int height, bool biLevel ) |
Managed Extensions for 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 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 RasterNativeBuffer object that contains the ABIC encoded data.For an example, refer to EncodeAbic.
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);
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