CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    Dec 2002
    Location
    Colroado
    Posts
    24

    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?

  2. #2
    dlorde is offline Elite Member Power Poster
    Join Date
    Aug 1999
    Location
    UK
    Posts
    10,163
    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.

  3. #3
    Join Date
    Dec 2002
    Location
    Colroado
    Posts
    24

    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.

  4. #4
    Join Date
    Jan 2003
    Location
    Israel
    Posts
    137
    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?

  5. #5
    dlorde is offline Elite Member Power Poster
    Join Date
    Aug 1999
    Location
    UK
    Posts
    10,163
    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.

  6. #6
    Join Date
    Dec 2002
    Location
    Colroado
    Posts
    24

    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
  •  





Click Here to Expand Forum to Full Width

Featured