THPDFExtGStateOptions Record

THPDFExtGStateOptions groups transparency, blend mode, and line-parameter settings for the THotPDF.RegisterExtGState options overload

Fields

NamePurpose
FillAlphaWrites /ca when the value is 0 or greater
StrokeAlphaWrites /CA when the value is 0 or greater
BlendModeWrites /BM when a blend-mode name is supplied
LineWidthWrites /LW when the value is 0 or greater
UseLineCap and LineCapWrite /LC when enabled
UseLineJoin and LineJoinWrite /LJ when enabled
MiterLimitWrites /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

Related APIs