CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2002
    Location
    Seattle, Washington
    Posts
    84

    Implementing icons and bitmaps in true color with vis studio

    I've seen many apps created with visual studio in C/C++ and all of the images are true color, however whenever I attempt to create or import bitmaps and/or icons, they are downgraded to 256 colors or 16 colors for small icons. Anybody know the solution to this?


  2. #2
    Join Date
    Feb 2001
    Location
    Sydney, Australia
    Posts
    1,909

    Re: Implementing icons and bitmaps in true color with vis studio

    Very strange, I used VC++ 60 to import trucolor bitmaps into resources and all works fine for me.
    Yeah, the resource editor can't show these image and therefore can't be used to edit it - but all works fine in run-time.

    Please - rate answer if it helped you
    It gives me inspiration when I see myself in the top list =)

    Best regards,

    -----------
    Igor Soukhov (Brainbench/Tekmetrics ID:50759)
    [email protected] | ICQ:57404554 | http://soukhov.com

    Russian Software Developer Network http://rsdn.ru
    Best regards,
    Igor Sukhov

    www.sukhov.net

  3. #3
    Join Date
    Mar 2002
    Location
    California, USA
    Posts
    2

    Re: Implementing icons and bitmaps in true color with vis studio

    Hi, Igor,
    I am also experiencing this problem.

    Question: are the tru-color icons you import being used for list-box, tree-control, or tool-bar icons?

    I am using a tru-color image directly in a dialog box (my about box), and this works fine.

    I am also using a tru-color image for my splash page, and this works fine. The image is displayed using a CBitmap object.

    But the icons I import for list-boxes, tool-bars and tree-controls are all getting remapped to 16-colors at run-time.

    So, have you used tru-color icons in any of these situations?
    Thanks for any help.


  4. #4
    Join Date
    Mar 2002
    Location
    California, USA
    Posts
    2

    Re: Implementing icons and bitmaps in true color with vis studio

    Go to http://www.codeguru.com/toolbar/HiColorToolbar.shtml

    This is an example that works.


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

Featured