SetAnnotInteriorColor

Annotations and hotspot links

Description

Writes an RGB interior colour to a supported shape annotation

Each component must be in the inclusive range 0 through 1

Syntax

Delphi

Function SetAnnotInteriorColor(Index: Integer; Red, Green, Blue: Double): Integer;

Parameters

IndexOne-based annotation index on the currently selected page; supported subtypes are Line, Square, Circle, Polygon and PolyLine
RedRed component in the inclusive range 0 through 1
GreenGreen component in the inclusive range 0 through 1
BlueBlue component in the inclusive range 0 through 1

Return values

1/IC was written and the document minimum version was raised to PDF 1.4
0No document is loaded, a component falls outside 0 through 1, or Index does not address a supported shape annotation