SetMarkupAnnotStyle

Color, Annotations and hotspot links

Description

Sets the background color and transparency of a text markup annotation.

Syntax

Delphi

Function TPDFlib.SetMarkupAnnotStyle(Index: Integer; Red, Green, Blue, Transparency: Double): Integer;

ActiveX

Function PDFlib::SetMarkupAnnotStyle(Index As Long, Red As Double, Green As Double, Blue As Double, Transparency As Double) As Long

DLL

int DLSetMarkupAnnotStyle(int InstanceID, int Index, double Red, double Green, double Blue, double Transparency);

Parameters

IndexThe index of the annotation. The first annotation on the page has an index of 1.
RedThe red component of the color
GreenThe green component of the color
BlueThe blue component of the color
TransparencyThe annotation alpha written to /CA as Value/100; 0 makes the annotation fully transparent and 100 fully opaque

Return values

1The colour and transparency were applied and the document minimum version was raised to PDF 1.4 for the annotation opacity
0Index does not address an annotation on the selected page