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.
Type: hwdcAnnotation
color
Name of the color to set the annotation color to. Can also use color of type hwt::Color.
Type: integer/hwt::Color
red
Value to set the annotation red color value to. Values can range from 0-255.
Type: integer
green
Value to set the annotation green color value to. Values can range from 0-255.
Type: integer
blue
Value to set the annotation blue color value to. Values can range from 0-255.
Type: integer
alpha
Transparency to set the annotation color to. Values can range from 0-255.
Type: integer

Examples

Set the color of a annotation to red:

          annotation = bdeCreateAnnotationText('annotation1', 'Annotation text');
          bdeSetAnnotationTextColor(annotation, 255, 0, 0, 255);
        
Set the color of a annotation to red:

          annotation = bdeCreateAnnotationText('annotation1', 'Annotation text');
          bdeSetAnnotationTextColor(annotation, 'red');