SetTransparencyEx

Vector graphics, Text, Page layout

Description

Sets separate fill and stroke transparency values for all subsequently drawn text and graphics. The setting applies to the selected page only and is not carried over to another page. FillTransparency controls non-stroking alpha through /ca, and StrokeTransparency controls stroking alpha through /CA. When the selected document is below PDF 1.4, the writer automatically raises the effective PDF version to 1.4

Syntax

Delphi

Function TPDFlib.SetTransparencyEx(FillTransparency, StrokeTransparency: Integer): Integer;

ActiveX

Function PDFlib::SetTransparencyEx(FillTransparency As Long, StrokeTransparency As Long) As Long

DLL

int DLSetTransparencyEx(int InstanceID, int FillTransparency, int StrokeTransparency);

Parameters

FillTransparencyThe amount of fill transparency to apply 0 = No transparency 50 = 50% transparency 100 = Invisible
StrokeTransparencyThe amount of stroke transparency to apply 0 = No transparency 50 = 50% transparency 100 = Invisible

Return values

0At least one transparency value was out of range, or transparency is not allowed in the current PDF/A mode
1The transparency values were set successfully