Re: [OpenMap Users] Changing OMGraphic origin

From: Don Dietrick <dietrick@bbn.com>
Date: Fri Jan 31 2003 - 10:02:21 EST

Nicole,

Create an OMRaster with the rendertype RENDERTYPE_OFFSET, where the
lat/lon location is the anchor point, and the x/y offset is half the
image height and width.

You could also use the OMScalingIcon.

- Don

On Thursday, January 30, 2003, at 01:37 AM, Russo, Nicole (Student)
wrote:

>> Hey Openmappers,
>> I have a binary .cgm file which I am displaying on top of an
>> OMGraphicHandlerLayer by first wrapping it in a java.awt.Image
>> object, then using this to create an OMRaster. My problem is that
>> the default origin of the resulting graphic is the top left-hand
>> corner. I need the origin to be in the centre of the graphic, but I
>> can't find any method that will enable me to change this. Does
>> anyone know of a way it can be changed?
>>
>> Cheers,
>> Nicole
>
> --
> [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 Fri Jan 31 10:02:30 2003

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