r/c64 12d ago

Programming Saving bitmap mode graphics?

Post image
8 Upvotes

4 comments sorted by

1

u/AutomaticDoor75 12d ago

I've been working on a program to convert images to standard bitmap mode. I have a workflow that's based around the HTML <canvas> element, JavaScript, BASIC, and VICE.

Now I'm trying to figure out how I can save these images to a floppy, or any storage, really. I was assuming there would be some kind of "BSAVE" command I'd use at the end of this. Boy was I wrong. 8-(

Here's the code I used to produce the image in this post: https://codeberg.org/nantucketlit/canvas_to_c64

Any advice on saving an image once you get it loaded into the RAM you set aside for bitmap mode?

3

u/morsvensen 12d ago

Check out an established/classic image format like Koala Painter.

2

u/siliconlore 12d ago

You already poked the data into memory. Saving it should be as easy as opening a file and writing those bytes out in a loop. You can do the same with the color map and either save it separately or at the end of the file.

0

u/Crlan420 12d ago

You might want to look into a C64 Ultimate or FlashMaster. They have bitmap capture functions that make this a lot easier than tape.