06-11-2024, 01:36 PM
Code: (Select All)
QB64 _loadimage statement shows PCX16 color 1 bit plane image error, 4 bit plane image is correct
loadimage show pcx error
|
06-11-2024, 01:36 PM
Code: (Select All)
QB64 _loadimage statement shows PCX16 color 1 bit plane image error, 4 bit plane image is correct
Welcome to the QB64-PE forum.
Thank you for reporting. Can you please share a sample PCX file that has the issue? Or maybe a link? I've mostly tested 8bpp/1 plane indexed and 24bpp/3 & 4 plane PCX files.
06-12-2024, 12:01 PM
I can't upload the file, pcx16 color 1 bit plane image is very common, you can use image software to convert it, after all, it's not 16 color 4 bit plane
06-13-2024, 05:25 PM
I was beginning to wonder which software can create PCX files using these old formats. Irfan Viewer can open the files you shared maybe it can export these old formats too. But thanks for sharing.
The PCX loader that we use (dr_pcx) has this note. So, I guess it needs some work with these old formats. I'll take a look at it over the weekend. Code: (Select All)
This program is used to display pcx 16 color 1 bit planes, anyone with good suggestions is welcome to provide them
Case Is > 192 And Asc(dat) <= 255 <-- I doubt this will work.
Try: CASE 193 TO 255 And where is CASE 192?
06-21-2024, 11:32 PM
Easiest way to convert hex to decimal is: VAL("&H" + hex_var$)
06-22-2024, 01:31 PM
VAL("&H" + hex_var$), which is a bit simpler.
|
« Next Oldest | Next Newest »
|