×

Discussion Board

Results 1 to 9 of 9

Thread: Graphic Glitch

Hybrid View

  1. #1
    Regular Contributor
    Join Date
    Jan 2004
    Posts
    165

    Graphic Glitch

    OK, I have a weird problem...

    I load a PNG that has transparency (not different levels, just on or off).

    I then extract individual tiles from this using...

    Image.createImage(f_data, xpos, ypos, width, height, 0);

    All the tiles are fine, and retain the transparent background, but a couple of the tiles have solid white backgrounds. There appears to be nothing wrong with the PNG when I check it in Photoshop.

    This is using MIDP2 only. It works fine in all emulators, but on a real Nokia N73 the odd tile has a solid white background.

    Is there is limit on the width or size of PNG's

  2. #2
    Regular Contributor
    Join Date
    Jan 2004
    Posts
    165

    Re: Graphic Glitch

    Solved...

    Thanks...

  3. #3
    Regular Contributor
    Join Date
    Jan 2004
    Posts
    165

    Re: Graphic Glitch

    OK, it worked on an N73 no problems...

    Just downloaded it to a 6288 (the exact same app), and there is no transparency when I use...

    Image.createImage(f_data, xpos, ypos, width, height, 0);

    ...to create the separate images. It is as if they are all solid images that are created.

    Any idea what this is?

  4. #4
    Regular Contributor
    Join Date
    Jan 2004
    Posts
    165

    Re: Graphic Glitch

    Also, is there anyone from Nokia that actually reads these?

    I find it amazing that a basic J2ME / MIDP2 function functions totally differently results on two Nokia devices. On the N73 I have to align the parameters nicely otherwise I get spurious non-transparent pixels, on the 6288 the function does not work at all and returns all fully opaque pixels. On the emulators it works as it is intended.

    Why, why, why are these firmwares released and basic functionality is not tested?

  5. #5
    Regular Contributor
    Join Date
    Jan 2004
    Posts
    165

    Re: Graphic Glitch

    OK got a work around for this phone using getRGB and createRGBImage, so I can now use either. Until another Nokia phone appears that also functions differently to how the J2ME spec says it should.

    Unbelievable Nokia, really...

    I also must say I am not that impressed with either the N73 or 6288. The N73 is plasticy and the silver covering was pealing within a day, and the 6288 just feels cheap, the open mechanism feels horrible and rough, especially when compared to the sweet mechanism on Samsung phones.

  6. #6
    Super Contributor
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,191

    Re: Graphic Glitch

    "Also, is there anyone from Nokia that actually reads these?"

    yes, a number of Nokia employees, including myself.
    We are actively using the feedback coming through this channel to report errors to the development team, write known issue documents, and publish technical solutions. Sometimes we also suggest corrections to the application code itself.
    Cannot comment on this specific issue, as I have not checked it myself.

    "Why, why, why are these firmwares released and basic functionality is not tested?"

    There is quite nice test suites for each of the APIs (TCKs) which have to be passed before the implementation is released. Also the implementations usually go through many other (more detailed) tests before the release.

    Hartti

  7. #7
    Regular Contributor
    Join Date
    Jan 2004
    Posts
    165

    Re: Graphic Glitch

    Well they missed this one...

    I can categorically say that the N73 and 6288 DO NOT work as per the J2ME / MIDP2 spec with regard to...

    createImage(f_data, xpos, ypos, width, height, 0);

    Both are bugged but in different ways with regards to this function.

    The exact same code works perfectly on emulators, and on Samsung D600, and exactly how the docs say it should work.

    This is exactly the sort of thing that makes mobile development an absolute pain, and Nokia's have been the worse by far for this sort of thing.

    If manufacturers spent more time testing and refining a small number of handsets rather than releasing a huge number of new handsets each month we wouldn't have this problem.

    J2ME - write once, run practically nowhere the same.

Similar Threads

  1. CSHLP File with graphic
    By bertma in forum Mobile Java General
    Replies: 0
    Last Post: 2005-07-21, 11:16
  2. Need help on loading png graphic over HTTP Connection.
    By ongchiboon in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2004-01-08, 15:47
  3. Need help on loading png graphic over HTTP Connection.
    By ongchiboon in forum Mobile Java General
    Replies: 5
    Last Post: 2003-12-16, 14:21
  4. Need help on loading png graphic over HTTP Connection.
    By ongchiboon in forum Mobile Java Media (Graphics & Sounds)
    Replies: 0
    Last Post: 2003-12-15, 17:10
  5. Series 60 list graphic sizes?
    By pruismaki in forum Symbian User Interface
    Replies: 3
    Last Post: 2003-10-27, 10:52

Posting Permissions

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