some basic questions

Get your graphics formats figures out here! Got details for others? Post here!
Post Reply
aeon
beginner
Posts: 25
Joined: Sat Oct 14, 2006 1:20 pm
Been thanked: 1 time

some basic questions

Post by aeon » Mon Oct 30, 2006 2:57 pm

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?

jasmine
VIP member
VIP member
Posts: 77
Joined: Tue May 10, 2005 6:07 am
Been thanked: 1 time

Post by jasmine » Wed Nov 01, 2006 4:29 am

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.

aeon
beginner
Posts: 25
Joined: Sat Oct 14, 2006 1:20 pm
Been thanked: 1 time

Post by aeon » Wed Nov 01, 2006 10:25 am

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.

Post Reply