loadimage show pcx error - Printable Version +- QB64 Phoenix Edition (https://qb64phoenix.com/forum) +-- Forum: QB64 Rising (https://qb64phoenix.com/forum/forumdisplay.php?fid=1) +--- Forum: Code and Stuff (https://qb64phoenix.com/forum/forumdisplay.php?fid=3) +---- Forum: Help Me! (https://qb64phoenix.com/forum/forumdisplay.php?fid=10) +---- Thread: loadimage show pcx error (/showthread.php?tid=2792) Pages:
1
2
|
loadimage show pcx error - macalwen - 06-11-2024 Code: (Select All)
QB64 _loadimage statement shows PCX16 color 1 bit plane image error, 4 bit plane image is correct
RE: loadimage show pcx error - a740g - 06-11-2024 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. RE: loadimage show pcx error - macalwen - 06-12-2024 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 RE: loadimage show pcx error - macalwen - 06-13-2024 I have uploaded the picture as an attachment, you can test it RE: loadimage show pcx error - a740g - 06-13-2024 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. RE: loadimage show pcx error - macalwen - 06-21-2024 Code: (Select All)
This program is used to display pcx 16 color 1 bit planes, anyone with good suggestions is welcome to provide them RE: loadimage show pcx error - SMcNeill - 06-21-2024 Case Is > 192 And Asc(dat) <= 255 <-- I doubt this will work. Try: CASE 193 TO 255 And where is CASE 192? RE: loadimage show pcx error - SMcNeill - 06-21-2024 Easiest way to convert hex to decimal is: VAL("&H" + hex_var$) RE: loadimage show pcx error - macalwen - 06-22-2024 VAL("&H" + hex_var$), which is a bit simpler. RE: loadimage show pcx error - SMcNeill - 06-22-2024 (06-22-2024, 01:31 PM)macalwen Wrote: VAL("&H" + hex_var$), which is a bit simpler. As so: Code: (Select All)
|