setColor

open fun setColor(@ColorInt color: Int)

Sets the color for this annotation. This is the text color for FreeTextAnnotation, WidgetAnnotation, and RedactionAnnotation.

Note: The annotation will only store the RGB part and discard the alpha channel set here. Annotation opacity is set via the setAlpha property.

Parameters

color

The annotation color or Color#TRANSPARENT to clear the field.