LayerAPI.getCurrentAnnoColor

 

COLORREF getCurrentAnnoColor()

This method returns a standard WINDOWS COLORREF value corresponding to the currently assigned annotation color for the layer.  The red, green, and blue channel values can be obtained from the COLORREF value as follows:

  1. COLORREF cRef = layrAPI.getCurrentAnnoColor();
  2. BYTE red = GetRValue(cRef);
  3. BYTE green = GetGValue(cRef);
  4. BYTE blue = GetBValue(cRef);