Saving to tga from canvas?

You must understand the Game Editor concepts, before post here.

Saving to tga from canvas?

Postby brandov » Fri Apr 05, 2013 4:02 pm

I'm sure it could most likely be done with arrays, but I'm not sure how to set up this code. Can anyone help me with this? I'd really appreciate it. :mrgreen:
I've searched tons of game editor threads, and I've found people talking about it but no actual examples :C
Hi! I've been using Game Editor since it came out, but I am shy and don't post much on the forums!
http://www.vivianvideo.com
User avatar
brandov
 
Posts: 6
Joined: Wed Oct 03, 2007 10:43 pm
Location: Michigan, USA
Score: 0 Give a positive score

Re: Saving to tga from canvas?

Postby skydereign » Fri Apr 05, 2013 5:59 pm

With this kind of thing, it should be easy enough to find outside of gE. Here are a few helpful links.
http://danielbeard.wordpress.com/2011/06/06/image-saving-code-c/
http://en.wikipedia.org/wiki/Truevision_TGA#Required_sections
If you still need help from there, I can make an example. The key thing is that you'll have to have an array to represent the rgba of the canvas (easiest representation being a 3d array [width][height][4]).
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: Saving to tga from canvas?

Postby brandov » Sat Apr 06, 2013 3:59 am

Thanks for replying, and for the links. They look like they might be promising, I'll play around with it and see if I can get it to work! If not, I'll most likely PM you sometime :lol:
Hi! I've been using Game Editor since it came out, but I am shy and don't post much on the forums!
http://www.vivianvideo.com
User avatar
brandov
 
Posts: 6
Joined: Wed Oct 03, 2007 10:43 pm
Location: Michigan, USA
Score: 0 Give a positive score


Return to Advanced Topics

Who is online

Users browsing this forum: No registered users and 1 guest

cron