View Full Version : Create Picture file format
I want to copy my window into a file. It works fine to read the pixels, but now i do not know how to store them into a file. I do not care if it is a gif,ps or bmp file format. It should only be OS indepenedt.
I recommend the tga file format.It's quite simple.First go to wotsit.org and get the specs.Then all you have to do is write a file with the correct header(with info on resolution,bit depth,etc.)and the image data(in the correct format though,BGRA if I'm not mistaken).It might sound hard but it isn't.In fact there's a thread over at the beginners forum where some people have posted code.You can take a look.BTW it is only natural that common questions like this have been answered a lot of times.A quick search will get much more info than what peopleare gonna post in here and you won't have to wait either.Anyway hope that helps.
Thanks! That's it!
Powered by vBulletin® Version 4.2.2 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.