This document is archived and information here might be outdated.  Recommended version.


IZlibCompression.CompressByLevel Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > System > ESRI.ArcGIS.esriSystem > Interfaces > IZ > IZlibCompression Interface > IZlibCompression.CompressByLevel Method
ArcGIS Developer Help

IZlibCompression.CompressByLevel Method

Compress the current the input buffer by level. If level less than 0, use default, if greater than best use best.

[Visual Basic .NET]
Public Sub CompressByLevel ( _
    ByVal inSize As Integer, _
    ByRef pInBuff As Byte&, _
    ByVal level As Integer, _
    ByRef pOutSize As Integer, _
    ByRef pOutBuff As Byte& _
)
[C#]
public void CompressByLevel (
    int inSize,
    ref Byte& pInBuff,
    ref int level,
    ref int pOutSize,
    ref Byte& pOutBuff
);
[C++]
HRESULT CompressByLevel(
  long inSize,
  System.Byte* pInBuff,
  long level,
  System.Int32* pOutSize,
  System.Byte* pOutBuff
);
[C++]
Parameters
inSize [in]

inSize is a parameter of type long pInBuff [in]
pInBuff is a parameter of type unsigned char* level [in]
level is a parameter of type long pOutSize [in, out]
pOutSize is a parameter of type long* pOutBuff [in, out]
pOutBuff is a parameter of type unsigned char*

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

See Also

IZlibCompression Interface