Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change
Quote from: NoCforMe on November 22, 2024, 08:15:37 AMIf you're going to edit a BMP, then use a graphics editor (like Paint Shop Pro here), not a stupid hex editor.Well thats all I could think of, to see the bitmap data. Carry on.
Quote from: zedd151 on November 22, 2024, 08:10:32 AMQuote from: NoCforMe on November 22, 2024, 08:09:18 AMOne basic question, though, before I start revamping this code:Personally, I would use a hex editor myself. But you never know about anyone else.
Do you think anyone's actually going to use all this bitmap data?
I'd hate to get this working all nice and perfect but to no practical use.
(The displayed text will be larger than the BMP file)
Quote from: NoCforMe on November 22, 2024, 08:09:18 AMOne basic question, though, before I start revamping this code:Personally, I would use a hex editor myself. But you never know about anyone else.
Do you think anyone's actually going to use all this bitmap data?
I'd hate to get this working all nice and perfect but to no practical use.
(The displayed text will be larger than the BMP file)
Quote from: NoCforMe on November 22, 2024, 07:49:16 AMLarry: could you test this again with that file that showed a bitmap size of 0? I added code to show the actual size in that case.Program says: "File is too big (> 2 MB)".
QuoteFile is too big (> 2MB).Really? Why don't you dynamically allocate memory? 2MB is on the small size for an uncompressed BMP.
Quote from: NoCforMe on November 22, 2024, 06:51:47 AMIt seems wrong though, or at least misleading. Maybe you should use "Header bitmap size" for size that was read from the header, and a separate listing "Actual bitmap size" displaying the actual size of the bitmap. This would help to avoid any confusion.Quote from: zedd151 on November 22, 2024, 03:36:30 AMAlso for larger 24 bit bitmaps, displayed bitmap size = 0. Which obviously is wrong.
Actually, no, that's correct: I'm reading the bitmap size from the BMP header, which can set that field to zero.
Quote from: zedd151 on November 22, 2024, 03:36:30 AMAlso for larger 24 bit bitmaps, displayed bitmap size = 0. Which obviously is wrong.