You Are Here:

Community: Developer Discussion Boards

#1 Old Getgraphics and paint - 2004-11-29, 15:06

Join Date: Mar 2003
Posts: 34
ulysseo42
Offline
Registered User
Hello everyone,
I have a problem with Graphics. When I paint stuff on a graphic
and then display it there is no problem.
However when I init then paint then update again, the changes don t show in Nokia6600 (works well in other phones and simulator)

here is what i do :

Image background;
Graphics g1;

void init()
{
background = Image.createImage(Width, Height);
g1 = background.getGraphics();
paintStuffOnGraphics(g1);
}

void update()
{
paintStuffOngraphics(g1);
}

void paint(Graphics g)
{
g.drawImage( background, X, Y, Graphics.TOP | Graphics.LEFT)
}


any idea of what I am doing wrong?
in fact I am trying to work around the S60 createImage bug but without success so far.

thank you...
Reply With Quote

#2 Old 2004-11-29, 15:09

Join Date: Mar 2003
Posts: 2,280
Location: Israel
shmoove
Offline
Forum Nokia Champion
Are you calling repaint() anywhere after you call update()?

shmoove
Reply With Quote

#3 Old 2004-11-29, 15:09

Join Date: Mar 2003
Posts: 34
ulysseo42
Offline
Registered User
Yes of course :)
actually the paint method is called every 50ms
Reply With Quote

#4 Old 2004-11-29, 15:37

Join Date: Mar 2003
Posts: 34
ulysseo42
Offline
Registered User
(repaint is also called every 50ms)
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