| | |
Resizing paint objs
![]() |
•
•
Join Date: Oct 2004
Posts: 1
Reputation:
Solved Threads: 0
newbie taking java 1 got a question my book seems to be hiding the answer to. my project is to make a smiley face that resizes when the window changes size. my prof. gave told us that size is all relative when creating the face the circle head something along these lines
w being width, h heght...
g.drawArc(w/8,h/8,w/2,w/3,0,360);
i suppose that would seem fine but when i did it, it resized by when i added the eyes with different dimensions they resized but not the way i wanted it to the eyes were on the outside of the head. now i combed through my book looking for the answer to this problem and it seems to have forgotten to include resizing help. perhaps someone can help me here
w being width, h heght...
g.drawArc(w/8,h/8,w/2,w/3,0,360);
i suppose that would seem fine but when i did it, it resized by when i added the eyes with different dimensions they resized but not the way i wanted it to the eyes were on the outside of the head. now i combed through my book looking for the answer to this problem and it seems to have forgotten to include resizing help. perhaps someone can help me here
![]() |
Similar Threads
- Resizing of an array. (C++)
- Java Paint (Java)
- Windows98 won't let me open Paint. (Windows 95 / 98 / Me)
- weres there a free paint shop (Windows 95 / 98 / Me)
Other Threads in the Java Forum
- Previous Thread: my compliler seems to be ignoring my while loop
- Next Thread: Basic program
| Thread Tools | Search this Thread |
android api applet application apps array arrays automation awt bidirectional binary birt bluetooth businessintelligence busy_handler(null) card chat class classes client code collision columns component constructor database designadrawingapplicationusingjavajslider draw eclipse error errors eventlistener exception expand fractal game givemetehcodez graphics gui guidancer html ide image inetaddress input integer intellij j2me java javafx javamicroeditionuseofmotionsensor javaprojects jme jni jpanel jtree julia linux list loop machine map method methods mobile mobiledevelopmentcreatejar myaggfun netbeans newbie oracle parsing plazmic print problem program programming project recursion scanner server set sharepoint smart sms smsspam sort sortedmaps sql string subclass support swing textfield threads tree trolltech unlimited utility webservices windows





