DevIL - saving images to file!!!!

alert
Unregistered
 
Post: #1
Does anybody have experience saving images with DevIL?

With:

ilTexImage();
and
ilSaveImage();

For some reason this only gives me a file with a strange image in it.
Anybody have a litle of code who works ok?

Thanks
Quote this message in a reply
Sage
Posts: 1,199
Joined: 2004.10
Post: #2
Describe the strange image.

Does it look like a diagonal skewing, with weird colors? If so, you've got your formats mismatching the gl context.

I've never personally used DevIL, but I've made the above mistake enough that I recognize it at sight. Rolleyes
Quote this message in a reply
alert
Unregistered
 
Post: #3
Yep... that kind of image...
I will see again the code... Cool
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  saving images for games: what color profile? Najdorf 1 2,206 Jul 25, 2009 06:16 AM
Last Post: AnotherJake
  saving photos on iphone 1.1.4 dimat 1 2,219 Jun 30, 2008 12:23 PM
Last Post: kodex
  Saving Frame Buffer nicromonicon 2 3,046 Apr 9, 2008 08:23 AM
Last Post: stevejohnson
  How do I build DevIL? GolfHacker 4 4,687 Feb 25, 2007 08:00 AM
Last Post: GolfHacker
  Displaying image with OpenGL and DevIL in C? leRiCl 13 9,093 Jan 23, 2007 01:25 PM
Last Post: djork