Hi,
I am converting 24 bit bmp files to rgb888 format. So far I didn't have any problem. But today, while I was processing character set images, I noticed that my converter didn't work right for images with width size not aligned to 8.
For example, I am processing the character "B". It's width is 7. While I get incorrect results for this width, if I resize it to 8 pixel width, I can convert it correctly.
Since I don't have any problem in the converter code, I suspect if a header size of an image shall be not constant, especially for the small images such as 7*12.
Also another thing I suspect is that I am reading the binary values using fread, by the size of an char. However, assuming a binary image file (bmp for example) is stream of pixels, it shall not differ if I read by a size that is aligned by 8 or not.
The funny thing is that I can resize the characters lesser than 8 pixel width to 8 pixel, but there are some characters, like "A" which is larger than 8 pixel.
I wonder if anyone has any idea about this situation. Thanks.
Erman