|
-
Feb 1st, 2001, 01:22 PM
#1
Thread Starter
New Member
Is it possible to combine a black and white image with a color pallete in Visual Basic?
Tks
Fi2000do

-
Feb 1st, 2001, 03:00 PM
#2
Frenzied Member
Usually palette entry 0 is black and 255 is white, so the colours will be available.... is that what you needed?
Harry.
"From one thing, know ten thousand things."
-
Feb 1st, 2001, 03:09 PM
#3
Thread Starter
New Member
Thanks But...
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!!!!!!!!!!
Fi2000do

-
Feb 1st, 2001, 03:23 PM
#4
Frenzied Member
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.
Harry.
"From one thing, know ten thousand things."
-
Feb 1st, 2001, 03:35 PM
#5
Thread Starter
New Member
Color palette
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.
Fi2000do

Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|