Welcome Guest. Please Login or Register. Apr 1st, 2018, 03:49am
ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018. We apologize Conforums does not have any export functions to migrate data. Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.
Thank you Conforums members.
Speed up Liberty BASIC programs by up to ten times!
Compile Liberty BASIC programs to compact, standalone executables!
Overcome many of Liberty BASIC's bugs and limitations!
Change palette for loaded bmp....
« Thread started on: Feb 3rd, 2012, 2:43pm »
I think it would be interesting if you could:
Loadbmp "scenery", "256color.bmp"
#main.box, "drawbmp scenery 0 0"
Changepal "scenery", "palette.bmp"
#main.box, "drawbmp scenery 0 0"
It will then draw the same bitmap again, but with the new palette!
---------
For God so loved the world, that He gave His only begotten Son, that whosoever believeth in Him should not perish, but have everlasting life. John 3:16
I think it would be interesting if you could...draw the same bitmap again, but with the new palette!
Interesting thought. I even tried to write some code to do it, but I can't make it work. I am wondering if LOADBMP (in LBB at least) is not preserving the palette, but converting it to a 'true color' bitmap. In that case there would be no palette left to modify, sadly.