Re: [OpenMap Users] Question: how to get the background color at a lat/lon point

From: Don Dietrick <dietrick_at_bbn.com>
Date: Tue, 13 Sep 2005 12:24:26 -0400

Hi Debbie,

There isn't a method on the MapBean that lets you check colors at
pixel locations. You could extend the BufferedMapBean/
BufferedLayerMapBean to check the pixel color in it's buffered image.

The other thing you could do is create a BufferedImage the same size
as the MapBean, get the active layers from the LayerHandler, get the
java.awt.Graphics object from the BufferedImage and call paint
(java.awt.Graphics) on each layer. Then check the pixel you want.

Hope this helps,

Don

On Sep 9, 2005, at 11:12 AM, Pierce,Deborah Jean Violette wrote:

> Hi,
> Given a lat/lon point, is there a way to determine the background
> color on the map at that specific point?
> Regards,
> Debbie Pierce
> MITRE Corporation
>
> --
> [To unsubscribe to this list send an email to "majdart_at_bbn.com"
> with the following text in the BODY of the message "unsubscribe
> openmap-users"]
>



=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Don Dietrick, dietrick_at_bbn.com
BBN Technologies, Cambridge, MA
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


--
[To unsubscribe to this list send an email to "majdart_at_bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Tue Sep 13 2005 - 12:24:50 EDT

This archive was generated by hypermail 2.3.0 : Tue Mar 28 2017 - 23:25:07 EDT