Re: [OpenMap Users] semi-transparent layers?

From: Don Dietrick <dietrick@bbn.com>
Date: Wed Oct 30 2002 - 17:33:15 EST

Here's something different - You could put all of your shapes in a
special OMGraphicList that does something like this - in it's generate
method, it calls OMGraphic.getShape() on each one of your shapes,
changes each one into a java.awt.geom.Area object, and then adds them
together to make one Area object. Then, in it's render method, it just
uses the one Area object. This assumes that all the shapes on the list
are supposed to be rendered with the same color, etc.

- Don

On Wednesday, October 30, 2002, at 05:18 PM, Hamilton, Kimberly D.
wrote:

> Hi Don,
> Thanks! I tried it out, and it actually worked better for me to
> manually
> tweak the transparency of the pixels returned by getRGB(), (such as:
> current_byte & 0x66FFFFFF) and pass that modified array to OMRaster.
> Calling OMRaster.setTransparent(value) caused a grey haze over the
> pixels
> where nothing was drawn -- I wanted that area to remain blank.
>
> This method is great if all shapes are x-y. However, some of my
> shapes are
> OMPolys consisting of lat/lon points connected by GreatCircle lines.
> I'll
> post a message describing the steps if I can get those types of shapes
> taken
> care of.
>
> Thanks again,
> Kim
>
>

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
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 Wed Oct 30 17:35:22 2002

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