×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    16

    Transparent Bug OF Nokia Dev Suite S60??

    It's a bug of nokia dev suite S60??? code as blow:

    It's work in S40 emulator was fine,but in s60 IT IS A WHITE RECT.
    , what should i do?

    protected void paint(Graphics g)
    {
    g.setColor(255,0,0);
    g.fillRect(0,0,this.getCanvasWidth(),this.getCanvasHeight());
    Image img=DirectUtils.createImage(100,100,0x00000000);
    g.drawImage(img,0,0,Graphics.TOP|Graphics.LEFT);
    }

  2. #2
    Regular Contributor
    Join Date
    Aug 2003
    Location
    uk
    Posts
    232
    Test it on a real phone. All the emulators have one issue or another.

    I spent a week trying to fix a bug which I eventually discovered only occured on the 6310 emulator and not on the real device.

    Alex

  3. #3
    Super Contributor
    Join Date
    Mar 2003
    Location
    Israel
    Posts
    2,280
    The bug is present on the Series 60 phones too.
    They have trouble with transparency and DirectGraphics. I doubt there is anything to do about it...

    shmoove

  4. #4
    Registered User
    Join Date
    Mar 2003
    Location
    Bremen, Germany
    Posts
    106

    Solution

    The solution is simple:

    You NEED to paint images with DirectGraphics, which you created with DirectGraphics. Painting it with just a Graphics instance won't work.

    I had the same problem when I was working on the MIDP/2.0 compatible game-engine for J2ME Polish (http://www.j2mepolish.org).

    Best regards
    Robert

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×