Results 1 to 2 of 2
- 02-19-2011, 10:19 PM #1
Senior Member
- Join Date
- Aug 2010
- Posts
- 127
- Rep Power
- 0
adding drawing images on a "Graphics instance"
I'm making a program and I want to display pictures (not graphics drawn on the spot using fillOval, fillRect etc,). Can anyone help me with this?
the problems are these:
1. loading an image from a file (probably a .jpg file, but the extension doesn't matter to me).
2. drawing an image from a file to a screen. This shouldn't be hard, but is it also possible to draw the image rotated x degrees. So for example drawing the image rotated 73 degrees clock-wise.
3. turning the code and the picture's into one program. Is there a way to make one .jar file with both the image and the code in it?
I don't need direct answers, links to specific API's and tutorials are enough.
- 02-19-2011, 10:30 PM #2
Moderator
- Join Date
- Feb 2009
- Location
- New Zealand
- Posts
- 4,543
- Rep Power
- 11
Have a look at The Java Tutorial.
2D Graphics covers loading and rendering (with transforms). Packaging Programs in Jar Files deals with how classes and other resources can be placed in a single jar archive for deployment.
Similar Threads
-
How to change my form design from "metal" to "nimbus" in Netbeans 6.7.1?
By mlibot in forum New To JavaReplies: 1Last Post: 01-21-2010, 09:20 AM -
Adding "Choose File" button to applet
By mju4t in forum Java AppletsReplies: 1Last Post: 09-17-2009, 08:11 AM -
"endless" eventLoop when creating new Instance
By javacafe in forum EclipseReplies: 0Last Post: 08-10-2009, 06:37 PM -
MoneyOut.println("It took you (whats wrong?>",year,"<WW?) years to repay the loan")
By soc86 in forum New To JavaReplies: 2Last Post: 01-24-2009, 06:56 PM -
the dollar sign "$", prints like any other normal char in java like "a" or "*" ?
By lse123 in forum New To JavaReplies: 1Last Post: 10-20-2008, 07:35 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks