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. Transparent Brush

Transparent Brush

Scheduled Pinned Locked Moved C / C++ / MFC
questiongraphics
6 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.
  • M Offline
    M Offline
    Md Mazharul Islam Khan
    wrote on last edited by
    #1

    I apply brush over my bitmap image. but i want that brush background will be transparent so that bitmap image can be shown also. How can i do that?

    C 1 Reply Last reply
    0
    • M Md Mazharul Islam Khan

      I apply brush over my bitmap image. but i want that brush background will be transparent so that bitmap image can be shown also. How can i do that?

      C Offline
      C Offline
      Cedric Moonen
      wrote on last edited by
      #2

      I suppose that you are using a hatched brush (with a solid brush, you cannot make it transparent) ? If yes, take a look at the SetBkMode[^] function from CDC


      Cédric Moonen Software developer
      Charting control [v1.1]

      M 1 Reply Last reply
      0
      • C Cedric Moonen

        I suppose that you are using a hatched brush (with a solid brush, you cannot make it transparent) ? If yes, take a look at the SetBkMode[^] function from CDC


        Cédric Moonen Software developer
        Charting control [v1.1]

        M Offline
        M Offline
        Md Mazharul Islam Khan
        wrote on last edited by
        #3

        Ok, i know about this function. but how i can apply??

        C M 2 Replies Last reply
        0
        • M Md Mazharul Islam Khan

          Ok, i know about this function. but how i can apply??

          C Offline
          C Offline
          Cedric Moonen
          wrote on last edited by
          #4

          mazhar_cse wrote:

          but how i can apply??

          :confused: What do you mean ? Just call the function... What is the problem? Can you describe more in details your probem ?


          Cédric Moonen Software developer
          Charting control [v1.1]

          1 Reply Last reply
          0
          • M Md Mazharul Islam Khan

            Ok, i know about this function. but how i can apply??

            M Offline
            M Offline
            Md Mazharul Islam Khan
            wrote on last edited by
            #5

            The main problem i face that i donot find who call this "int SetBkMode( int nBkMode )" function?? it returns integer value, but i dont know who use it. Plz, help me.

            P 1 Reply Last reply
            0
            • M Md Mazharul Islam Khan

              The main problem i face that i donot find who call this "int SetBkMode( int nBkMode )" function?? it returns integer value, but i dont know who use it. Plz, help me.

              P Offline
              P Offline
              prasad_som
              wrote on last edited by
              #6

              mazhar_cse wrote:

              The main problem i face that i donot find who call this "int SetBkMode( int nBkMode )" function??

              Do you missed its documentation[^] ?

              Prasad Notifier using ATL | Operator new[],delete[][^]

              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