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
| Index | The index of the annotation. The first annotation on the page has an index of 1. |
|---|---|
| Red | The red component of the color |
| Green | The green component of the color |
| Blue | The blue component of the color |
| Transparency | The annotation alpha written to /CA as Value/100; 0 makes the annotation fully transparent and 100 fully opaque |
Return values
| 1 | The colour and transparency were applied and the document minimum version was raised to PDF 1.4 for the annotation opacity |
|---|---|
| 0 | Index does not address an annotation on the selected page |