Results 1 to 2 of 2
Thread: One big texture file?
- 09-27-2011, 03:41 AM #1
Senior Member
- Join Date
- Jul 2011
- Location
- Melbourne, Victoria, Australia
- Posts
- 155
- Rep Power
- 2
One big texture file?
Hey guys,
I have a png image that has all the sqaure textures i require. I want to know if it is possible to make smaller images from one large one. I am sure this is possible but just cant seem to figure it out.
Here's what i have:
One .png with all textures in it.
-> Size is 64x64
-> Each individual texture is 16x16
I want to turn one 64x64 into 4 16x16's.
Thanks.
- 09-27-2011, 05:41 AM #2
Moderator
- Join Date
- Jul 2010
- Location
- California
- Posts
- 1,609
- Rep Power
- 5
Re: One big texture file?
Take a look at the BufferedImage class
BufferedImage (Java Platform SE 6)
The image can be read by ImageIO into a BufferedImage, 4 BufferedImage objects can be created, a Graphics object can be created from these objects, and a portion of the original drawn to said Graphics object.
Similar Threads
-
Using Images In Java As A Texture Pack?
By Alerhau in forum New To JavaReplies: 6Last Post: 08-22-2011, 05:36 PM -
Java 3D QuadArray Texture Coordinates
By ajtgarber in forum Advanced JavaReplies: 0Last Post: 02-13-2011, 04:46 PM -
Sending a File from Server to Client and saving the file to Clients computer
By al_Marshy_1981 in forum NetworkingReplies: 8Last Post: 02-18-2010, 12:54 PM -
3D Texture-Mapped Rectangle with a Billboard behavior
By aRTx in forum Advanced JavaReplies: 5Last Post: 05-11-2009, 04:27 PM -
how to read openproj(Projity) file i.e. ,POD file(Project Management file)
By mahendra.athneria in forum New To JavaReplies: 0Last Post: 02-11-2009, 09:53 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks