You Are Here:

Community: Developer Discussion Boards

#1 Old Colours blending in on Display - 2003-04-04, 06:45

Join Date: Mar 2003
Posts: 18
fwahrman
Offline
Registered User
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 06:51.
Reply With Quote

#2 Old 2003-04-04, 10:00

Join Date: Mar 2003
Posts: 112
Location: Helsinki.FI
Send a message via AIM to tinkezione Send a message via Yahoo to tinkezione
tinkezione
Offline
Regular Contributor
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
Reply With Quote

#3 Old 2003-04-04, 17:37

Join Date: Mar 2003
Posts: 18
fwahrman
Offline
Registered User
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.
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

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

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d18645X qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE44iscussionQ qdcZtypeQUqfntypeZE44iscussionContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZentertainmentQ qfnZtopicQUqfnTopicZj2meQ qfnZtopicQUqfnTopicZjavaQ qfnZtopicQUqfnTopicZmediaQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE44iscussionQ qfnZtypeQUqfntypeZE44iscussionContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE44iscussionQ qrdfZtypeQUqfntypeZE44iscussionContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ