Re: Transparent color

From: Don Dietrick <dietrick@bbn.com>
Date: Thu Apr 04 2002 - 15:21:10 EST

Hi Chris,

When you create a java.awt.Color, you can specify the transparency of
the color in the alpha channel - Color(r, g, b, a). a = 0 is
transparent, a = 255 is opaque.

If you need to change the transparency values in the same Color object
at runtime, you can use the OMColor, which supports a mutable alpha
channel - or you can just create a new Color object with a different
transparency value.

Cheers,

Don

On Thursday, April 4, 2002, at 02:53 PM, Chris Hopkins wrote:

>
> Hi all -
>
> In light of the deadline that we have here, I'm just going to ask
> this instead of doing what I should and actually read some stuff.
> ;) We're trying to display probability information over a map in
> a gridcell fashion. Each range of probability has an associated
> color. However, we want to be able to see the map through the
> colors. Is there a way to specify transparency for the fill color
> of the OMRect object (or any OMGraphic for that matter)?
>
> Thanks and I apologize for not RTFM'ing. ;)
>
> - Chris
> --
> [To unsubscribe to this list send an email to "majdart@bbn.com"
> with the following text in the BODY of the message "unsubscribe
> openmap-users"]
>
>

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Don Dietrick, BBN Technologies, dietrick@bbn.com
10 Moulton Street, Cambridge, MA 02138
617-873-3031 [fax]-2794
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

--
[To unsubscribe to this list send an email to "majdart@bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Thu Apr 4 15:21:24 2002

This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:32 EDT