RE: [OpenMap Users] Problems with OMRasterObject

From: Jeroen Meijer <>
Date: Sun, 19 Sep 2004 10:03:04 +0200

Something I found out
ImageIcon ii = new
         int h = ii.getIconHeight(); // shows actual height (works)
         int w = ii.getIconWidth(); // shows actual width (works)
         h = bg.HEIGHT; // height is suddenly 1?!?!
         w = bg.WIDTH; // width is suddenly 2?!
-----Oorspronkelijk bericht-----
Van: []
Namens Jeroen Meijer
Verzonden: woensdag 15 september 2004 11:47
Onderwerp: RE: [OpenMap Users] Problems with OMRasterObject
I've also tried with ImageIcon
ImageIcon bgImage = new ImageIcon(new URL(serverURL +
. but it still fails.. maybe OMGraphic doesn't support JPEG? The
requested file IS available
-----Oorspronkelijk bericht-----
Van: []
Namens Jeroen Meijer
Verzonden: dinsdag 14 september 2004 16:22
Onderwerp: [OpenMap Users] Problems with OMRasterObject
Hi all, i'm trying to add an image to an OMGraphicList.. The image
itself is loaded, but when rendering the items in the graphic list I get
the message;
OMRasterObject.render: Attempting to draw a Image that is not ready!
Image probably wasn't available.
// test
OMGraphic omg2 = createImage();
graphics.add(omg2); // OMGraphicList
protected OMGraphic createImage(){
      OMRaster bg = null;
        java.awt.Image bgImage = URL(serverURL +
        bg = new OMRaster(10.0f,10.0f,bgImage);
      }catch(Exception ex){}
      return bg;
What's wrong? I've searched the mailing archives for an answer, but
found none. Maybe the location layer can be used, but then I have to
rewrite all my code which I integrated into a mysql
Jeroen Meijer

[To unsubscribe to this list send an email to ""
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Mon Oct 18 2004 - 04:05:03 EDT

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