THPDFExtGStateOptions Record
Method summary: THPDFExtGStateOptions RecordTHPDFExtGStateOptions groups transparency, blend mode, and line-parameter settings for the THotPDF.RegisterExtGState options overload
Fields
| Name | Purpose |
|---|---|
FillAlpha | Writes /ca when the value is 0 or greater/ca when the value is 0 or greater |
StrokeAlpha | Writes /CA when the value is 0 or greater/CA when the value is 0 or greater |
BlendMode | Writes /BM when a blend-mode name is supplied/BM when a blend-mode name is supplied |
LineWidth | Writes /LW when the value is 0 or greater/LW when the value is 0 or greater |
UseLineCap and LineCap | Write /LC when enabled/LC when enabled |
UseLineJoin and LineJoin | Write /LJ when enabled/LJ when enabled |
MiterLimit | Writes /ML when the value is 0 or greater/ML when the value is 0 or greater |
Usage
Options := THPDFExtGStateOptions.Default;
Options.FillAlpha := 0.4;
Options.StrokeAlpha := 0.75;
Options.BlendMode := 'Screen';
Options.LineWidth := 2.5;
Options.UseLineCap := True;
Options.LineCap := lcProjectSquareEnd;
StateName := PDF.RegisterExtGState(Options);
The default value leaves every optional entry unset, so callers can opt into only the entries they need