LB Booster
Programming >> Language extensions >> Change palette for loaded bmp.... http://lbb.conforums.com/index.cgi?board=extensions&action=display&num=1328283795 Change palette for loaded bmp....
Post by James 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
Re: Change palette for loaded bmp....
Post by Richard Russell on Feb 3rd, 2012, 4:46pm
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.