Results 1 to 3 of 3

Thread: Palette and PaletteMode properties

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 2008
    Posts
    195

    Palette and PaletteMode properties

    Hello everybody. I am a VB6 newbie. There are two properties of the form object that I really can't understand, Palette and PaletteMode. I hear that setting PaletteMode to vbCustom, one can assign Palette to a bitmap containing the desired palette. However, it seems like VB ignores these proprieties. As a matter of fact:

    1) If I load a bitmap into Form.Picture and then I load a black and white picture into Form.Palette (PaletteMode being set to vbCustom), Form.Picture stays as before, it doesn't become a black and white picture.

    2) I thought it was because I have a true color display, so I tried running VB under 256-color emulation, but things didn't change.

    4) I ultimately tried setting Form.PaletteMode to vbCustom and leaving Form.Palette empty, but still Form.Picture didn't change.

    Anybody can explain all this?

    Thank you,
    Dichelson

  2. #2
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    Re: Palette and PaletteMode properties

    See if this MSDN documentation sheds some light
    http://msdn.microsoft.com/en-us/libr...59(VS.60).aspx
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Oct 2008
    Posts
    195

    Re: Palette and PaletteMode properties

    Thank you, I already had a look at that page, but it simply says what I expected those properties to be for. Actually, when I tried to use them, I found out what I said in the starting post, that is, there seems not to be a way to change the palette in practice. Of course, this is not much of a problem with today's true-color displays, but it can make a difference if you want to implement some special color changes...

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