THotPDF.OptimizeLoadedJPEG2000Images Method
Re-encodes JPX images through OpenJPEG using a lossless or visually lossless profile, optional tiles and a selected progression order
Declaration
function OptimizeLoadedJPEG2000Images(
Profile: THPDFJPEG2000OptimizationProfile;
Quality, TileWidth, TileHeight: Integer;
Progression: THPDFJPEG2000Progression;
MinimumSavingsBytes: Int64;
out AInfo: THPDFLoadedResourceOptimizationInfo): Integer;
Capability control
j2opDisabled is a no-op, so callers must explicitly enable lossless or visually lossless encoding
Convertible calibrated inputs retain an explicit calibrated RGB output definition, while Lab, non-RGB ICCBased, Separation and DeviceN images are skipped rather than converted to process RGB