Original Post
Hi there, I'm Thomas. I was searching for some informations for almost a month, and I got here :P So, here is my problem: I'm creating a 2D game, using DirectDraw module. However, I have encountered really nasty problem: if my game used bitmaps only ( *.BMP files ), it would get really over-sized ... wouldn't it? So, I'm trying to find, which image format would perfectly fit my needs. After few days of thinking, I've decided to use *.PCX files' format. Here is my aim: decode header, and decode image data ( and store it as DIB data, as an array of BYTEs ). So far, I've successfully decoded header ( with a little help of PCX documentation ). I stopped when trying to decode image data. Even with a help of few different documentations, I didn't make it :( When I was searching the internet, I found this tutorial ( heh, it's from GameDev by the way ): http://www.gamedev.net/reference/articles/article1305.asp I found right there, how to make DIB data displayed on the screen. Now, there's still a question: how to get DIB data? I'm certain, there's a library, just like Intels' JPG one ( from an article above ), which could return DIB data from PCX file on the hard drive. But, I can't find any ;( Could someone give me an advice, how to proceed? Maybe there's a library, like described above? Or maybe PCX was not so good choice? I'm waiting for Your opinion :) Regards, Tomalla