|
-
January 29th, 2003, 05:21 PM
#1
Graphics using .bmp files
I am writing a game in Java. I am not using swing. Can anyone tell me if it is possible to use bitmap images .bmp for my graphics??? I am using .gif files presently using the following code, to load the images.
private Image pipe;
pipe = getImage(getDocumentBase(),"pipe.gif");
Also, I can not find any documentation on the method getImage(..) possibly someone knows of a place on the web where you can access help on the java api?
-
January 29th, 2003, 07:01 PM
#2
I can not find any documentation on the method getImage(..)
You can't have looked very far - the Java API is documented on Sun's web site (as it tells you in the SDK docs). See getImage(...), and more generally, the Java API.
The human heart is like Indian rubber: a little swells it, but a great deal will not burst it...
Please use [CODE]...your code here...[/CODE] tags when posting code. If you get an error, please post the full error message and stack trace, if present.
-
January 29th, 2003, 07:29 PM
#3
Reply
Thank you for the condescing answer. I still did not get my question answered. My original post also had to do with bitmap graphics. If you can not treat me with respect on this forum, please do not reply.
-
January 29th, 2003, 08:39 PM
#4
Yes Happy,
The javadocs for the "getImage()" methods state that only GIF, JPEG an PNG formats are supported. No BMP support.
I don't have experience in java game programming (or graphics programming), but have you looked at "Java Advanced Imaging" (JAI)?
http://java.sun.com/products/java-media/jai/
I don't mean to be condescending, but have you tried an Internet search? When I searched for "java game programming" on "Yahoo"
http://www.yahoo.com
I got over 400,000 results!
Hope this has helped you.
Good Luck,
Avi.
________________________
Why is a duck?
-
January 30th, 2003, 05:43 AM
#5
Thank you for the condescing answer. I still did not get my question answered. My original post also had to do with bitmap graphics. If you can not treat me with respect on this forum, please do not reply.
Tip: If you can't spell words like 'condescending' it's better not to use them 
As I made clear in my post, I was answering your question "Also, I can not find any documentation on the method getImage(..) possibly someone knows of a place on the web where you can access help on the java api?", which I still think indicates a certain lack of effort and/or initiative. I didn't see much to respect there
However, I will respect your request and not reply to your posts.
Be careful what you ask for - because you just might get it...
Last edited by dlorde; January 30th, 2003 at 09:12 AM.
Please use [CODE]...your code here...[/CODE] tags when posting code. If you get an error, please post the full error message and stack trace, if present.
-
January 30th, 2003, 05:53 PM
#6
Peace Brother
Where I come from the word condescing is equivalent to the word exacting. Meaning precise.
You have to forgive me as my proper english is bad !
Thanks!!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|