You Are Here:

Community: Developer Discussion Boards

#1 Old setClip() method of Graphics class in not working with DirectGraphics class-Nokia API - 2004-03-03, 11:34

Join Date: Nov 2003
Posts: 145
dotcdotc's Avatar
dotcdotc
Offline
Regular Contributor
hi all,

I m developing a game for Nokia series 40. And I have taken the strip of images.

And I am drawing them using drawImage () method of Graphics Class ( when sprite is walking left) and drawImage () method of DirectGraphics Class (when sprite is walking right as I m simply rotating the same image). I've used the setClip() method of Graphics Class to display the intended sprite at a time.

I have used DirectGraphics' drawImage() method because it can Rotate the images. But it seems setClip() method is not working properly as entire strip (of sprites) is visible instead of inteded one. While it is mentioned in Nokia API doc that Graphics and DirectGraphics perform all the drawing operations in same context . ( means e.g. if I have set the color in using Graphics' setColor() then it'll b appllied to DirecGraphics also.

regards
dotc
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