Hi Juan,
I believe the problem is the way you are defining your path to the
image file:
ImageIcon ii=new
ImageIcon("C:/gis/openmap-4.5.3/com/bbn/openmap/examples/todo/
band.gif");
Java will handle the slashes correctly.
- Don
On Wednesday, January 8, 2003, at 05:30 AM, Juan Proyecto wrote:
>
> Hi everybody,
>
> First of all, I would like to wish you all (openmapers) a Happy
> New Year!!
>
> And now, letīs go bak to work:
>
> Iīm having problems trying to display an image on my openmap
> application. I obtain this error:
>
> *** ERROR ***
> OMRasterObject.render: Attempting to draw a Image that is not ready!
> Image proba
> bly wasn't available.
> *************
>
> and, this is a piece of the code I use:
>
> ImageIcon ii=new
> ImageIcon("C:\\gis\\openmap-
> 4.5.3\\com\\bbn\\openmap\\examples\\todo\\band.gif");
>
> OMRaster ras=new OMRaster(43.46f,-3.79f,-20,0,ii);
>
> lista.add(ras);
>
> return lista;
>
> where lista is an OMGraphicList.
>
> I have gone over it many times but I canīt solve it. I appreciate any
> help you could give.
>
> Thank you all,
>
> Juan.
>
>
>
>
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
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 Jan 8 09:19:58 2003
This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:34 EDT