I tried exactly your code but the image does not show. My code is
URL url = new URL(".........");
Image image = Toolkit.getDefaultToolkit().getImage(url);
MediaTracker oTracker = new MediaTracker(this);
oTracker.waitForAll();
System.out.println("in satellite layer1");
OMScalingRaster raster = new OMScalingRaster(46.00416f,-77.006f,34.995f,-
62.994f,image);
omList.insertOMGraphicAt(raster,0);
but if i replace OMScalingRaster with OMRaster the image shows very well.
Any advise please!!
thanks
Chhaya
---- Original Message ----
From: Martin Chapman
Date: Mon 11/24/03 15:05
To: 'Chhaya Mudgal', dietrick@bbn.com, amohombe@yahoo.com
Cc: openmap-users@bbn.com
Subject: RE: [OpenMap Users] projecting image
This worked for me with an OMScalingRaster:
URL oUrl = new URL ( thumbNailFilePath );
Image oImage = Toolkit.getDefaultToolkit ().getImage ( oUrl );
MediaTracker oTracker = new MediaTracker ( oFrame );
oTracker.addImage ( oImage, 0 );
oTracker.waitForAll ();
OMScalingRaster oScalingRaster = new OMScalingRaster (
nUpperLeftLatitude, nUpperLeftLongitude,
nLowerRightLatitude, nLowerRightLongitude, oImage );
oGraphicList.insertOMGraphicAt ( oScalingRaster, 0 );
Martin
-----Original Message-----
From: owner-openmap-users@bbn.com [mailto:owner-openmap-users@bbn.com]
On Behalf Of Chhaya Mudgal
Sent: Monday, November 24, 2003 10:25 AM
To: dietrick@bbn.com; amohombe@yahoo.com
Cc: openmap-users@bbn.com
Subject: Re: [OpenMap Users] projecting image
Can anyone please tell me how to project an image in mercator
projection? Is it
possible to do that?
Also I have tried to use OMScalingRaster but the image does not show
however it
shows up when i use OMRaster. Any idea why?
thanks
Chhaya
-- [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"] -- [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"] -- [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 Mon Nov 24 15:23:30 2003
This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:36 EDT