[OpenMap Users] Bug or Feature? OMRasterObject, not rendering 'RenderedImage'

From: JR Andreassen <janrune_at_io.com>
Date: Fri, 19 Jan 2007 11:32:21 -0600

Hi..
 I'm trying to use Icon Images with locations.
When I use Images loded from the disk it works fine.
When I use the same image from BufferedImage it doesn't draw.
I've traced it to 'OMRasterObject.render.java' (line357)

//--------------------------------------------------------------------------------------
            if (g instanceof Graphics2D && bitmap instanceof
RenderedImage) {
                // Affine translation for placement...
                ((Graphics2D) g).drawRenderedImage((BufferedImage) bitmap,
                        new AffineTransform(1f, 0f, 0f, 1f, point1.x,
point1.y));
                // Undo the affine translation for future graphics??
                ((Graphics2D) g).translate(-point1.x, -point1.y);
            } else {
                g.drawImage(bitmap, point1.x, point1.y, this);
            }
//--------------------------------------------------------------------------------------
When I load the Image from disk it's a 'sun.awt.image.ToolitImage' and
it renders just fine.
When It's loaded from memory(image I've drawn) it's a
'BufferedImage'/RenderedImage' it does not render.

Any Ideas ??
Any insight on this would be appriciated.
    Thanks
       JR

--
[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 Fri Jan 19 2007 - 12:33:48 EST

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