Posted: 09:31am 17 Nov 2025
Copy link to clipboard |
Volhout Guru

|
|
|
@Peter,
Is there is preferred method to get the X and Y dimensions in the library (2 words) before the image data ?
I know the method Petscii uses (the CSUB) but lets assume we have a BMP in RGB121 format on disk. And we know the dimensions.
How would you do it ? Use the Petscii method ? And that with the 1 file, in stead of the individual sprites. There is a limit in what you can do, because the MMbasic program needs to hold the sprite data in readable form, as well as the CSUB conversion in RAM. That is why we had to split the Petscii sprites in 70kbyte blocks.
And since we do not store individual indexes (the whole BMP) we cannot compress. I have no clear view how this could work with a 80k+ sized BMP.
The way I see is that I open the BMP file in a HEX editor, move the data down by 2 words of 64 bits, and type the X and Y values in as integers. Then save the file.
Is that what you envision ?
Volhout |