FreeImage.NET Class Library Reference
FreeImageZLibGZip Method |
Compresses a source buffer into a target buffer, using the ZLib library.
Namespace: FreeImageAPI
Assembly: FreeImageNET (in FreeImageNET.dll) Version: 3.17.0.4 (3.17.0)
Syntax
C#
public static uint ZLibGZip( byte[] target, uint target_size, byte[] source, uint source_size )
Parameters
- target
- Type: SystemByte
Pointer to the target buffer. - target_size
- Type: SystemUInt32
Size of the target buffer. Must be at least 0.1% larger than source_size plus 24 bytes. - source
- Type: SystemByte
Pointer to the source buffer. - source_size
- Type: SystemUInt32
Size of the source buffer.
Return Value
Type: UInt32The actual size of the compressed buffer, or 0 if an error occurred.
See Also