THotPDF.OptimizeLoadedImagesParallel Method

Recompresses independent loaded image streams with bounded workers and deterministic source-order commits

اعلان

function OptimizeLoadedImagesParallel(WorkerCount: Integer; MinimumSavingsBytes: Int64; HighRatio: boolean; out AInfo: THPDFLoadedImageOptimizationInfo): Integer;

واحد

HPDFDoc

پارامترها

نامهدف
WorkerCountMaximum concurrent compression workers, clamped to 64
MinimumSavingsBytesMinimum encoded-byte reduction required before an image stream is replaced
HighRatioWhen True, tries four deterministic maximum-compression strategies per image
AInfoReceives job, byte, failure, worker-limit, and deterministic-order statistics

مقدار بازگشتی

Returns the number of image streams replaced by smaller deterministic Flate payloads

یادداشتهای استفاده

APIهای مرتبط