you will have to add an if statment and see if the painting is for 24 or 8bpp.
If the 24bpp then use the code you have, if its 8bpp, you have only 255 possible colors, so you will have to deal with that somewhere in your probgram, i.e limmiting the users to choose a color only from the 255 you use.





Reply With Quote

Bookmarks