Original Post
🔒 Locked
256 palette loading example please?
Advertisement
hi
well u can try save the pallete as a jasc pallete and u will see its a text file with a little header and folowing pallete entryes
i am sure u can write some code to read a text file ...
another way is to read the a bitmap file (8 bits) int memory and figure out pallete from it...a little harder... but u can do it is u check BITMAPCOREINFO and like win32api structures
sorry for no code but i work in asm and belive me i set the pallete manually
(the single pallete of course)
Bogdan
well u can try save the pallete as a jasc pallete and u will see its a text file with a little header and folowing pallete entryes
i am sure u can write some code to read a text file ...
another way is to read the a bitmap file (8 bits) int memory and figure out pallete from it...a little harder... but u can do it is u check BITMAPCOREINFO and like win32api structures
sorry for no code but i work in asm and belive me i set the pallete manually
Bogdan
Check the part of my old DD class. It reads file (fn) and reads 768 bytes of the data. Than it sets it. Don''t pay attention on this ugly style, that were a few years ago.
------------------------------
DISCLAIMER: Im not responsible for any harm that my english can cause to your eyes, brains or programming skills.
|
------------------------------
DISCLAIMER: Im not responsible for any harm that my english can cause to your eyes, brains or programming skills.
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement