bdeSetAnnotationTextColor
Sets the text color of an annotation.
Syntax
bdeSetAnnotationTextColor(annotation, color)
bdeSetAnnotationTextColor(annotation, red, green, blue, alpha)
Inputs
- annotation
- Annotation in which to set the text color.
- color
- Color that is to be set for the annotation text. Can also use color of type hwt::Color.
- red
- Red color value that is to be set for the annotation text. Values can range from 0-255.
- green
- Green color value that is to be set for the annotation text. Values can range from 0-255.
- blue
- Blue color value that is to be set for the annotation text. Values can range from 0-255.
- alpha
- Transparency value that is to be set for the annotation text. Values can range from 0-255.
Examples
annotation = bdeCreateAnnotationText('annotation1', 'Annotation text');
bdeSetAnnotationTextColor(annotation, 255, 0, 0, 255);
annotation = bdeCreateAnnotationText('annotation1', 'Annotation text');
bdeSetAnnotationTextColor(annotation, 'red');