Results 1 to 7 of 7
- 08-21-2011, 08:21 PM #1
Using Images In Java As A Texture Pack?
How do I make a Texture pack in Java? I mean to have like a big image which I can take pieces off and use them in my game?
- 08-21-2011, 08:42 PM #2
- 08-21-2011, 09:02 PM #3
How can I use that?
The BufferedImage API is a great place to start. Have a look, give it a try, and if you still are stuck, please show us your code and any specific questions you may have.
- 08-21-2011, 09:11 PM #5
Are you talking about actually creating a picture composed of other smaller pictures. In which case just look that up TexturePacker or go to: » TexturePacker – Sprite sheet maker, image packer and optimizer . If you already have the image then use BufferedImage.getSubImage(). If you need to know how to use that go to: Getting a Sub-Image of an Image | Example Depot && BufferedImage (Java 2 Platform SE 5.0). If you need further instruction on how to use these then just say so.My API:Java Code:
cat > a.out || cat > main.class
- 08-22-2011, 04:15 PM #6
Can't get that with the buffered images, would appreciate some help.
So far: I've been reading up on it on many websites without understanding it, please help!
- 08-22-2011, 06:36 PM #7
Okay, so. Is it possible to do it with the ImageIcon?
- By ajtgarber in forum Advanced JavaReplies: 0Last Post: 02-13-2011, 05:46 PM
- By Nosrettap in forum Advanced JavaReplies: 1Last Post: 01-02-2011, 09:32 PM
- By BigBear in forum New To JavaReplies: 1Last Post: 05-24-2010, 12:19 PM
- By aRTx in forum Advanced JavaReplies: 5Last Post: 05-11-2009, 05:27 PM
- By Jack in forum NetBeansReplies: 2Last Post: 07-02-2007, 06:13 AM