Results 1 to 5 of 5

Thread: color pallete

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2001
    Location
    Argentina
    Posts
    6
    Is it possible to combine a black and white image with a color pallete in Visual Basic?

    Tks
    Fi2000do

  2. #2
    Frenzied Member HarryW's Avatar
    Join Date
    Jan 2000
    Location
    Heiho no michi
    Posts
    1,827
    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."

  3. #3

    Thread Starter
    New Member
    Join Date
    Feb 2001
    Location
    Argentina
    Posts
    6

    Red face 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

  4. #4
    Frenzied Member HarryW's Avatar
    Join Date
    Jan 2000
    Location
    Heiho no michi
    Posts
    1,827
    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."

  5. #5

    Thread Starter
    New Member
    Join Date
    Feb 2001
    Location
    Argentina
    Posts
    6

    Talking 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
  •  



Click Here to Expand Forum to Full Width