Ok. Convert works. But its kind of slow even in warp. Just got through redoing it in QB64. Only tested in Linux so far
and uses some shell commands so Windows is going to take a little modification.
(After looking at it again I just think Shell "rm IN.BMP" needs changed to Shell "del IN.BMP")
This program takes any input image and converts it to a BVLOADABLE IMG.BIN and VPAL.BIN with one command.
ImageMagicK must be installed. This program doesn't do all the work by itself.
Its quite a bit quicker than the CBM Basic convert program.
img2Bvload IMAGEFILENAME.EXT
EDIT: STILL LEARNING THINGS ABOUT QB64
ADD THE FOLLOWING TO THE HEAD OF THE SOURCE FILE TO GET RID OF THE ANNOYING POP UP WINDOW. PRINT STATEMENTS NOW WILL JUST BE IN YOUR COMMAND WINDOW
Code: Select all
$CONSOLE
$SCREENHIDE
_SOURCE _CONSOLE
_DEST _CONSOLE
Written using the QB64 compiler.
SOURCE
Linux 64 bit executable (wrapped in a zip file, forum won't let me upload raw)
Windows executable and source together.
NOTE: For windows the convert command conflicts with the NTFS file system convert command.
so the magick command is used instead. Also. Must download a version of Imagemagick that does
8 bits per color channel the 16 bit per color channel version was not outputting a usable file for my algorithm, though it appeared valid otherwise.
Short CBM Basic program to load and observe the resulting files.
Link to Imagemagick Windows version thats working for me:
https://imagemagick.org/archive/binarie ... static.exe