PDA

Click to See Complete Forum and Search --> : color pallete


fi2000do
Feb 1st, 2001, 12:22 PM
Is it possible to combine a black and white image with a color pallete in Visual Basic?

Tks

HarryW
Feb 1st, 2001, 02:00 PM
Usually palette entry 0 is black and 255 is white, so the colours will be available.... is that what you needed?

fi2000do
Feb 1st, 2001, 02:09 PM
i am working with black and white image, and what i need is with visual basic insert a color palette to the image.
Is it possible.
Thanks for all!!!!!!!!!!

HarryW
Feb 1st, 2001, 02:23 PM
If you want to use a palettised mode you will have to change the colour depth to 8-bit using the API, and then you can fiddle around with the palette entries if you want. You can also get hold of the primary display surface exclusively using DirectX, and you can easily set the colour depth with that.

You could do a workaround without using an 8-bit colour mode, but you wouldn't get any of the speed benefits of 8-bit colour.

fi2000do
Feb 1st, 2001, 02:35 PM
thanks for your quick reply.

i much apreciate if you kindly send me a little example for doing that.

Sorry bothering you, but I´m just a begginner.

Thanks and regards.