Skip to main content
Table of Contents

TTMSFNCPDFGraphicsLibOutputWriter.CompressStream Method

Compresses the content of AStream using zlib deflate and returns the result in a new TStringStream.

API unit family: TMSFNCPDFCoreLibBase Declaring type: TTMSFNCPDFGraphicsLibOutputWriter

Syntax

FMX.TMSFNCPDFCoreLibBase.hppPascalC++
function CompressStream(AStream: TStringStream): TStringStream;
System::Classes::TStringStream* __fastcall CompressStream(System::Classes::TStringStream* AStream);

Parameters

Name Description
AStream Stream to compress.

Returns

New stream containing the deflate-compressed bytes. The caller is responsible for freeing the returned stream.