×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    18

    Colours blending in on Display

    Hey, I've got a question regarding the displaying of graphics. In my MIDlet I am first drawing a rectangle that is black, inside of which I am drawing a filled Rectangle of a varying colour.

    The problem I have is that when the result is shown on the screen then the boxes don't look like they are lining up anymore. It looks as if the Black border around them in some cases is wider and in some cases less wide, depending on the colour the box is filled with.

    If I instead of drawing a black rectangle around them draw a white one then everything works fine, no problems at all.

    Has anyone else here encountered these kind of problems before ? And more importantly, does anyone have a suggestion on how I could avoid these problems, either by structuring my drawing loop differently or by some other means ?

    Oh yeah, I am encountering the problems on both the Nokia 7210 emulator as well as on an actual 7210.

    Last edited by fwahrman; 2003-04-04 at 05:51.

  2. #2
    Regular Contributor
    Join Date
    Mar 2003
    Location
    Helsinki.FI
    Posts
    112
    Hi,

    my first guess is that you have stumbled into a problem with pixel component alignment. As each of the pixels consists of red, green and blue components, and their order in the physical medium is exactly the same, fully red (FF0000) boxes indeed SEEM to be more left than fully blue (0000FF) boxes regardless of the same X coordinate. There is practically no cure to this as the physical screen is what it is. If your problem was something else, I'd like to see the source code to try to find out what's wrong.

    Kind regards,
    Tinke / FN

  3. #3
    Registered User
    Join Date
    Mar 2003
    Posts
    18
    Thx for your answer, yeah, I think this is the case, I guess I'll just have to try and avoid using too dark colours then to separate the boxes as that really makes the issue stand out more.

Posting Permissions

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