krome152001 wrote: > thanks alot i see what i can do with your information this weekend > and once again thanks alot > i got another question what do you mean by parse the BMP format??? i > believe we using pure Dev_C++ ( As you can see i'm not a good > programer). we open the image using Irfanview but we call Irfanview > using Dev_C++
The last time I checked, Irfanview is an image viewer. Not really what you want to do. You want to access the actual image data of the image from your program. Either do that yourself (parsing) by reading the file into memory (HARD if you don't have a good grasp on pointers, memory allocation, and file manipulation) or let a third-party library do it for you (EASIER - find a good library - several have been mentioned and c-prog's Links list several others). BMP is the easiest file format to load into memory and has an extremely simplistic definition (although some of the math can be a bit complicated). If you plan on loading it yourself, the easiest way to do it is to use a hex editor, an image editor that allows you to zoom to pixel level, and a decent debugger. You know you are on the right track when you've got structures loading from the file and RGB values coming into the allocated memory that perfectly match the RGB values in the image editor. -- Thomas Hruska CubicleSoft President Ph: 517-803-4197 *NEW* VerifyMyPC 2.2 Change tracking and management tool. Reduce tech. support times from 2 hours to 5 minutes. Free for personal use, $10 otherwise. http://www.CubicleSoft.com/VerifyMyPC/
