THPDFCollectionRGBColor Record

Ein Collection-Colors-Eintrag eines PDF-2.0-Portfolios (ISO 32000-2:2020 12.3.5, Tabelle 155)

THPDFCollectionRGBColor = record
  Present: boolean;
  R: Double;
  G: Double;
  B: Double;
end;

R, G und B sind die Komponenten in 0..1, und Present sagt, ob der Eintrag existiert: THotPDF.SetPortfolioColors schreibt nur Einträge mit Present gleich true, und eine Komponente außerhalb von 0..1 löst eine Exception aus

THotPDF.GetLoadedCollectionColors lässt fehlende Einträge mit Present gleich false zurück, statt eine Farbe zu erfinden

THPDFCollectionColorsInfo · SetPortfolioColors · GetLoadedCollectionColors