You Are Here:

Community: Developer Discussion Boards

#1 Old Draw an Image on itself - 2004-05-14, 18:22

Join Date: Mar 2003
Posts: 82
FatalError
Offline
Regular Contributor
Hi,

I'm trying to write an image on itslef...

image.getGraphics().drawImage( image,20,0,0 );

if I do the same with -20: it's working goodd!! But not in this side.
What I get is the first 20 rows that are copied again and again on all the picture...

Does someone already did the same... and succeed :-) ?

thanks
Reply With Quote

#2 Old 2004-05-14, 18:37

Join Date: Mar 2003
Posts: 2,280
Location: Israel
shmoove
Offline
Forum Nokia Champion
I don't think you will have any luck.
The drawImage() method must be copying pixels from left to right.
When you draw pixel columns 20 to 39, it copied the columns 0 to 19 onto them. Then when you draw column 40 it will take the source pixel from column 20 which was already overwritten with column 0, and so on, so you get the result you described.
I guess you'll have to make a separate copy of the image and use that instead.

shmoove
Reply With Quote

#3 Old 2004-05-15, 09:55

Join Date: Mar 2003
Posts: 82
FatalError
Offline
Regular Contributor
:-(

Thanks a lot shmoove: you're a killer !!!
Reply With Quote

#4 Old 2004-05-15, 11:27

Join Date: Mar 2003
Posts: 2,280
Location: Israel
shmoove
Offline
Forum Nokia Champion
I'm hoping that's "killer" in the good sense ;p

shmoove
Reply With Quote

#5 Old 2004-05-15, 12:08

Join Date: Mar 2003
Posts: 82
FatalError
Offline
Regular Contributor
of course not: it has been translated litterally from French: it's perhaps a little odd in English but in French it's a compliment!

Thanks again
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