Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. transparency in 32bit bmp in vs2010

transparency in 32bit bmp in vs2010

Scheduled Pinned Locked Moved C / C++ / MFC
c++helpquestion
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • 0 Offline
    0 Offline
    002comp
    wrote on last edited by
    #1

    Hello Friends I ported my application from VC6 to VS2010 in mfc.In vc6 , using 8bit indexed bmp as Dialog'Toolbar. But in VS2010,after porting Icons colors are corrupted and not showing icons properly.And Icons which are disabled are hidden. Its showing up only when they get enabled. So,now m facing two problems: first,Icons colors are not proper. Second,its showing background color too. m Guessing that background color only hiding my icons on disable.Its not showing transparency as it is happening with 8bit images.Any Ideas? I tried by changing bmp to 32 bit then icon'color came fine but other prob still. Any help will be Appreciated. Thanks & Regards Yogesh

    H 1 Reply Last reply
    0
    • 0 002comp

      Hello Friends I ported my application from VC6 to VS2010 in mfc.In vc6 , using 8bit indexed bmp as Dialog'Toolbar. But in VS2010,after porting Icons colors are corrupted and not showing icons properly.And Icons which are disabled are hidden. Its showing up only when they get enabled. So,now m facing two problems: first,Icons colors are not proper. Second,its showing background color too. m Guessing that background color only hiding my icons on disable.Its not showing transparency as it is happening with 8bit images.Any Ideas? I tried by changing bmp to 32 bit then icon'color came fine but other prob still. Any help will be Appreciated. Thanks & Regards Yogesh

      H Offline
      H Offline
      Hadi Dayvary
      wrote on last edited by
      #2

      Hi Read these pages: Bitmap Transparent Problem in VC++2010 Ribbon button[^] [^] Use this tool: www.qualibyte.com/pixelformer/[^] Goodluck

      www.logicsims.ir

      0 1 Reply Last reply
      0
      • H Hadi Dayvary

        Hi Read these pages: Bitmap Transparent Problem in VC++2010 Ribbon button[^] [^] Use this tool: www.qualibyte.com/pixelformer/[^] Goodluck

        www.logicsims.ir

        0 Offline
        0 Offline
        002comp
        wrote on last edited by
        #3

        Thanks Hadi. Icons are coming fine now after changing them to 32 bit and On Disable they stay there bcoz it has transparency channel in it. But this Doesnt solve my problem completely. What happeniing is now that When I am disabling any Toolbar Icon,It looks like colored and dim as compared to total gray in VC6. Any Ideas? Thanks Yogesh

        H 1 Reply Last reply
        0
        • 0 002comp

          Thanks Hadi. Icons are coming fine now after changing them to 32 bit and On Disable they stay there bcoz it has transparency channel in it. But this Doesnt solve my problem completely. What happeniing is now that When I am disabling any Toolbar Icon,It looks like colored and dim as compared to total gray in VC6. Any Ideas? Thanks Yogesh

          H Offline
          H Offline
          Hadi Dayvary
          wrote on last edited by
          #4

          You're welcome You must use the tool(Pixelformer) and edit your bitmap. It supports 32 bit and trancparency. I've tested it and I'm sure it works.

          www.logicsims.ir

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups