Search Results

Search found 1 results on 1 pages for 'user1905553'.

Page 1/1 | 1 

  • Android drawrRect only produces squares

    - by user1905553
    I present the following code snippet: // < Android / Eclipse Kepler > // < Screen resolution: 480x800 > Graphics g = game.getGraphics(); g.drawRect(0, 0, g.getWidth()/2, g.getHeight(), Color.GRAY); Produces a square [0,0], [240, 240] (240 = g.getWidth/2 = 480/2) I expected to get a rectangle [0,0] [240, 800] Can anyone tell me if I'm wrong or if the drawRect uses width instead of height? How do I fix this? Please, if possible, test before post your answer. Help me to save a ridiculous bitmap. Thanks to all!

    Read the article

1