Re: changing display color

Ivy:

Wong Ka Yan Ivy [PG] wrote:
> I would like to ask, using VisAD, is there any method, to draw symbols like
> TC, High, or Low, on the image? Like those shown on the weather map,
> Thanks. I've tried to use Display.Shape, but I fail to do so.

You can use a HersheyFont with VisAD's PlotText class. The wmo.jhf font contains extra symbols. See the attached image. The "string" you would use in render_font() call is then just the "code values" for the characters you want.

tom


Regards, Ivy.

--
Tom Whittaker (tomw@xxxxxxxxxxxxx)
University of Wisconsin-Madison
Space Science and Engineering Center
Cooperative Institute for Meteorological Satellite Studies
Phone/VoiceMail: 608.262.2759

PNG image

  • 2004 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the visad archives: