Page 1 of 1

some basic questions

Posted: Mon Oct 30, 2006 2:57 pm
by aeon
hi,

I have some general questions regarding to picture formats.

There is a lot of custom types of picture files, what I noticed is when somebody makes viewer, these files are converted in either memory or disk to bmp files. Is this really necessary? Does windows platform natively only support bmp format and everything other has to be converted into one?

I understand that at some point file has to be mapped/uncompressed into memory in some understandable format but what is this format?
Is it .bmp? or .raw?

Posted: Wed Nov 01, 2006 4:29 am
by jasmine
When I code, a .bmp file is easy to stick into a picture box for display. What needs to be determined in a graphics format is the the bit size, width, height, palette(if it has one), alpha format(if it has one), and orientation. I don't believe that windows supports bmp with alpha so I usually convert to .dds format when exporting using a secondary dll. TGA is also another viable format for export and import conversion.

Posted: Wed Nov 01, 2006 10:25 am
by aeon
I know but I was asking more specific about what you called "picture box".
Is't some kind of memory? I remember in old turbo pascal it was memory location which took care about displaying but how is it in winodws and what about non-standart custom game picture formats? How to display them? They just have to be somehow rearranged in memory to some common format in order for "picture box" to display them.