Paint

Post Reply
User avatar
desertfish
Posts: 1098
Joined: Tue Aug 25, 2020 8:27 pm
Location: Netherlands

General - CX16 Paint

Post by desertfish »

Here's the release of the bitmap PAINT program. It loads and saves files in the BMX file format. It supports editing and saving of 320x240 256 color bitmap images, and loading of arbitrary sized 2, 4, 16 or 256 color BMX images.

Source code (prog8) is here.

The program is quite usable although an UNDO feature, and a Zoom feature, should really be added in some future update.
paint.png
paint.png (54.44 KiB) Viewed 2853 times
Try It Now!

test images included are called: robospider, bmxrider, desertfish
Attachments
paint.zip
(110.06 KiB) Downloaded 31 times
Last edited by desertfish on Fri Oct 25, 2024 8:25 pm, edited 7 times in total.
User avatar
desertfish
Posts: 1098
Joined: Tue Aug 25, 2020 8:27 pm
Location: Netherlands

Re: Paint

Post by desertfish »

removed, the example files are inside the main zip file
Last edited by desertfish on Wed Apr 24, 2024 5:19 pm, edited 1 time in total.
User avatar
desertfish
Posts: 1098
Joined: Tue Aug 25, 2020 8:27 pm
Location: Netherlands

Re: Paint

Post by desertfish »

I've updated the paint program with a small bugfix in the save routine (it forgot to set the color depth correctly, making the resulting bmx file unable to load again).

Also the example images are now inside the zip file with the paint.prg itself, so you can try to load them in the "try it now" in the web emulator as well! Their names are: (type in lowercase):

robospider
bmxrider
desertfish
mortarm
Posts: 302
Joined: Tue May 16, 2023 6:21 pm

Paint Tweaks

Post by mortarm »

Based on my experience with the online emulator, I have a few suggestions for currently established features:
  • Don't use transparency within the Palette and Cord. boxes.
  • When "Claer"ing an image, reset the default palette and pointer color.
  • A less chunky pointer will improve pixel placement accuracy. Crosshairs ae good.
  • Remove the "Zoom" command until it's implemented to avoid confusion.
  • A way to change pointer color so it doesn't get lost in the image.
User avatar
desertfish
Posts: 1098
Joined: Tue Aug 25, 2020 8:27 pm
Location: Netherlands

Re: Paint

Post by desertfish »

Updated the zip file in the first post:
* fixed an error in one of the included demo images
* paint now uses a crosshair cursor for drawing instead of the hand.
User avatar
desertfish
Posts: 1098
Joined: Tue Aug 25, 2020 8:27 pm
Location: Netherlands

Re: Paint

Post by desertfish »

Updated the zip file in the first post:

- much faster flood fill routine implemented.
User avatar
desertfish
Posts: 1098
Joined: Tue Aug 25, 2020 8:27 pm
Location: Netherlands

Support for loading other color depth images

Post by desertfish »

Paint can now load 2, 4, 16 color images as well. (1,2,4 bpp).

Editing and saving is still always in 256 colors.
Post Reply