bdeSetAnnotationTextColor
Sets the color of a annotation.
Syntax
bdeSetAnnotationTextColor(annotation, color)
bdeSetAnnotationTextColor(annotation, red, green, blue, alpha)
Inputs
- annotation
- The annotation that will have it's color set.
- color
- Name of the color to set the annotation color to. Can also use color of type hwt::Color.
- red
- Value to set the annotation red color value to. Values can range from 0-255.
- green
- Value to set the annotation green color value to. Values can range from 0-255.
- blue
- Value to set the annotation blue color value to. Values can range from 0-255.
- alpha
- Transparency to set the annotation color to. 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');