Re: [OpenMap Users] semi-transparent layers?

From: Don Dietrick <dietrick@bbn.com>
Date: Wed Oct 30 2002 - 07:51:20 EST

Hi Kim,

You could create a BufferedImage sized to your graphic, and get the
java.awt.Graphics object from it and render the OMGraphics right into
it (the OMGraphics would need to be created with coordinates relative
to the BufferedImage, as RENDERTYPE_XY, for instance).

Then, you could get the BufferedImage's pixels (bi.getRGB()) and set
them into an OMRaster, which you then set the transparency of and place
where you wanted.

Hope this helps,

Don

On Tuesday, October 29, 2002, at 03:43 PM, Hamilton, Kimberly D. wrote:

> Hello,
> I'm wondering if anyone has encountered this issue before. I need to
> create
> a shape that's very elaborate, and the only way I know to form it is
> as a
> composite graphic (consisting of OMRects, OMPolys, and OMCircles). The
> problem is that I also need the composite graphic to be
> semi-transparent.
> Of course, when I set the transparency of the OMGraphics individually,
> regions of overlap are darker. A proposed theoretical solution to
> this was
> to draw the objects as fully opaque into a "layer" (not necessarily
> OpenMap's Layer class), and then set the layer to be semi-transparent,
> so
> that no overlap is visible. I'm aware that no OpenMap Layer subclass
> is
> capable of this kind of behavior, but I'd like to know if anyone has
> advice
> about what to do.
>
> Thanks in advance!
> Kim
>
> --
> [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 Wed Oct 30 07:53:54 2002

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