LB Booster
« Change palette for loaded bmp.... »

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!
LB Booster Resources
LB Booster documentation
LB Booster Home Page
LB Booster technical Wiki
Just BASIC forum
BBC BASIC Home Page
Liberty BASIC forum (the original)

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Change palette for loaded bmp....  (Read 609 times)
James
New Member
Image


member is offline

Avatar




PM


Posts: 42
xx 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!

smiley

---------

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
User IP Logged

Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 1348
xx Re: Change palette for loaded bmp....
« Reply #1 on: Feb 3rd, 2012, 4:46pm »

on Feb 3rd, 2012, 2:43pm, James wrote:
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.

Richard.
User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

| |

This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls