File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Improving Graphics. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Improving Graphics." Watch "Improving Graphics." New topic
Author

Improving Graphics.

Al Hollis
Ranch Hand

Joined: Dec 12, 2005
Posts: 60
Hi,

So far i heave created the following code which create a kind of spinning wheel which i will add answering to. The trouble is it looks horrible and im having trouble finding good java applett programming tutorials. What i would like is for the reel to move smoothley round making it look more like a reel on a fruit/slot machine. Has any one here got any tips/links/websites they could offer to help me do this as I feel like ive hit a brick wall. Thanks in advance.

Alan

A. Wolf
Ranch Hand

Joined: Sep 28, 2003
Posts: 57
Is the interval between images too long? if you decrease the sleep interval you might need more images too. Maybe you can edit your images with photoshop or gimp and add some motion blur effects to make it look like its spinning?
I see you have taken care of the double buffering.
Why does it look horrible in your oppinion?
Al Hollis
Ranch Hand

Joined: Dec 12, 2005
Posts: 60
Mainly because im a perfectionist, at the moment the graphics jump 50 pixels per paint rather than smoothly rolling from there starting postion to their ending.. And i cant seem to make this work as it should.
A. Wolf
Ranch Hand

Joined: Sep 28, 2003
Posts: 57
I agree, 50 pixels are quite a jump comparing it to the desired "smoothly rolling". I definitely suggest adding more images to fill in the gap.
Al Hollis
Ranch Hand

Joined: Dec 12, 2005
Posts: 60
why more images? I know that the images need to be moved say 1 pixel at a time downwards, but i have no idea how to do this smoothly .
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Improving Graphics.