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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Transparent BMP

Transparent BMP

Scheduled Pinned Locked Moved C / C++ / MFC
questioncomlearning
4 Posts 3 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.
  • R Offline
    R Offline
    Rafael Fernandez Lopez
    wrote on last edited by
    #1

    How can I insert into my project dialog a BMP from a resource and make it transparent ? I set up my BMP background to (255,0,255) and it doesn't turn to transparent. Should I call any function or something ? Thanks in advance, Rafael.


    Written by: Rafael Fernández López.

    Visit: http://www.maestroprogramador.com

    J J 2 Replies Last reply
    0
    • R Rafael Fernandez Lopez

      How can I insert into my project dialog a BMP from a resource and make it transparent ? I set up my BMP background to (255,0,255) and it doesn't turn to transparent. Should I call any function or something ? Thanks in advance, Rafael.


      Written by: Rafael Fernández López.

      Visit: http://www.maestroprogramador.com

      J Offline
      J Offline
      Jaran Nilsen
      wrote on last edited by
      #2

      Are you using the BitBlt function to render the image? In that case you shold switch to TransparentBlt. As far as I remember the last parameter to the function is the transparent color...

      R 1 Reply Last reply
      0
      • J Jaran Nilsen

        Are you using the BitBlt function to render the image? In that case you shold switch to TransparentBlt. As far as I remember the last parameter to the function is the transparent color...

        R Offline
        R Offline
        Rafael Fernandez Lopez
        wrote on last edited by
        #3

        no I'm not using it, I don't even know what is it. I am programming with MFC but until now I ever have programmed graphical interfaces and what function should I call from MFC ?? Please help or tell me some web site where it is explained or something... thank you so much !!


        Written by: Rafael Fernández López.

        Visit: http://www.maestroprogramador.com

        1 Reply Last reply
        0
        • R Rafael Fernandez Lopez

          How can I insert into my project dialog a BMP from a resource and make it transparent ? I set up my BMP background to (255,0,255) and it doesn't turn to transparent. Should I call any function or something ? Thanks in advance, Rafael.


          Written by: Rafael Fernández López.

          Visit: http://www.maestroprogramador.com

          J Offline
          J Offline
          John R Shaw
          wrote on last edited by
          #4

          Drawing Transparent Bitmap with ease with on the fly masks in MFC There are also other articles at CP on the subject. INTP

          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