02-17-2005, 06:01 PM
Happy to help.
It would be better to use JPG (or TGA or any other of those compressed formats). Once the IMG_Load function has loaded the JPG into memory, it is in the same format as any other BMP would be - the loading routine decompresses the file into its full form, which is then stored in memory.
Therefore, there is no difference in efficiency between using BMP or a compressed format - the only reason it would be better to use a compressed image file format is that the files you distribute with your program will be much smaller.
-shiftLynx
It would be better to use JPG (or TGA or any other of those compressed formats). Once the IMG_Load function has loaded the JPG into memory, it is in the same format as any other BMP would be - the loading routine decompresses the file into its full form, which is then stored in memory.
Therefore, there is no difference in efficiency between using BMP or a compressed format - the only reason it would be better to use a compressed image file format is that the files you distribute with your program will be much smaller.
-shiftLynx
img]http://www.cdsoft.co.uk/misc/shiftlynx.png[/img]