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. Image Transparency saving but Not showing.

Image Transparency saving but Not showing.

Scheduled Pinned Locked Moved C / C++ / MFC
question
3 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 saved a Image with some transparency state by using Colormatrix And ImageAttribues In GDIplus.And that image is saving with actual value of transparency.But when I load that image and add it to devicecontext then its transparency is not coming there(Means If i set transparency 0 then black image is coming And If I set 1 then also white is coming but If I set any other value Between 0 And 1 then that transparency level is not coming ,It is showing completely white for >0) Any Ideas? Thanks & Regards Yogesh

    J 1 Reply Last reply
    0
    • 0 002comp

      Hello Friends I saved a Image with some transparency state by using Colormatrix And ImageAttribues In GDIplus.And that image is saving with actual value of transparency.But when I load that image and add it to devicecontext then its transparency is not coming there(Means If i set transparency 0 then black image is coming And If I set 1 then also white is coming but If I set any other value Between 0 And 1 then that transparency level is not coming ,It is showing completely white for >0) Any Ideas? Thanks & Regards Yogesh

      J Offline
      J Offline
      jk chan
      wrote on last edited by
      #2

      In which format you saved image ? 32 bpp bitmap or PNG ? in that case it is fine. which function you use to draw the image ? if you use DrawImage function in gdiplus with a 32bit bmp ,it will work for sure.

      If u can Dream... U can do it

      0 1 Reply Last reply
      0
      • J jk chan

        In which format you saved image ? 32 bpp bitmap or PNG ? in that case it is fine. which function you use to draw the image ? if you use DrawImage function in gdiplus with a 32bit bmp ,it will work for sure.

        If u can Dream... U can do it

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

        I save the image in 32bitFormat as Tiff and am using DrawImage to draw the Image. Thanks Yogesh

        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