SetBlendMode

Vector graphics, Image handling, Text

Description

Sets the blend mode for subsequently drawn graphics.

Syntax

Delphi

Function TPDFlib.SetBlendMode(BlendMode: Integer): Integer;

ActiveX

Function PDFlib::SetBlendMode(BlendMode As Long) As Long

DLL

int DLSetBlendMode(int InstanceID, int BlendMode);

Parameters

BlendModeThe blend mode to use: 0 = Normal 1 = Multiply 2 = Screen 3 = Overlay 4 = Darken 5 = Lighten 6 = Color Dodge 7 = Color Burn 9 = Hard Light 10 = Soft Light 11 = Difference 12 = Exclusion 13 = Hue 14 = Saturation 14 = Color 15 = Luminosity

Return values

Returns 1 when the blend mode was set. Returns 0 when BlendMode is outside the 0 to 15 range or the active PDF/A-1, PDF/A-2, PDF/X-1 or PDF/X-2 conformance mode forbids transparency.