Issue 70: Image.getGraphics() returns an already translated Graphics object
Status:  Fixed
Owner: ----
Closed:  Sep 2010
Reported by charlie...@gmail.com, Sep 13, 2010
What steps will reproduce the problem?
1. try the attached MIDlet on microemulator (java SE swing)

What is the expected output? What do you see instead?

You should see the text at the very top left of the screen, instead it is a little bit shifted (10 x 10 pixels) to the right and bottom.


What version of the product are you using? On what operating system?

svn version of microemulator, Revision: 2416


Please provide any additional information below.

The graphics object associated with an Image should have its transformation matrix set to identity when we get it using the getGraphics method.

I attach a patch that solves the problem. 

Midlet.java
889 bytes   View   Download
fix-Image-getGraphics.patch
930 bytes   View   Download
Sep 16, 2010
Project Member #1 bar...@gmail.com
Fixed in trunk
Status: Fixed
Labels: Milestone-3.0