Click to See Complete Forum and Search --> : Graphics using .bmp files


HappyGoLucky
January 29th, 2003, 04:21 PM
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?

dlorde
January 29th, 2003, 06:01 PM
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(...) (http://java.sun.com/j2se/1.4/docs/api/index-files/index-7.html), and more generally, the Java API (http://java.sun.com/j2se/1.4/docs/api/).

The human heart is like Indian rubber: a little swells it, but a great deal will not burst it...

HappyGoLucky
January 29th, 2003, 06:29 PM
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.

abramia
January 29th, 2003, 07:39 PM
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?

dlorde
January 30th, 2003, 04:43 AM
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 :p

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 :rolleyes:

However, I will respect your request and not reply to your posts.

Be careful what you ask for - because you just might get it...

HappyGoLucky
January 30th, 2003, 04:53 PM
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!!