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. Doese GDI+ provide the functions such as SetROP2 in GDI?

Doese GDI+ provide the functions such as SetROP2 in GDI?

Scheduled Pinned Locked Moved C / C++ / MFC
winformsgraphicstutorialquestion
7 Posts 4 Posters 2 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.
  • G Offline
    G Offline
    G Richard
    wrote on last edited by
    #1

    I want to know how to use GDI+ to draw a rubber line? :-D Let's use GDI+ to draw! hoho

    M C S 3 Replies Last reply
    0
    • G G Richard

      I want to know how to use GDI+ to draw a rubber line? :-D Let's use GDI+ to draw! hoho

      M Offline
      M Offline
      Mazdak
      wrote on last edited by
      #2

      What do you mean by "rubber line"? Mazy "So,so you think you can tell, Heaven from Hell, Blue skies from pain,... How I wish,how I wish you were here."
      Wish You Were Here-Pink Floyd-1975

      G 1 Reply Last reply
      0
      • G G Richard

        I want to know how to use GDI+ to draw a rubber line? :-D Let's use GDI+ to draw! hoho

        C Offline
        C Offline
        Christian Graus
        wrote on last edited by
        #3

        No, it does not. I did this by using OnPrtepareDC, and drawing the rubber band or shape to the screen directly, only drawing it to the bitmap at the end of the operation. Christian The tragedy of cyberspace - that so much can travel so far, and yet mean so little.

        G 1 Reply Last reply
        0
        • M Mazdak

          What do you mean by "rubber line"? Mazy "So,so you think you can tell, Heaven from Hell, Blue skies from pain,... How I wish,how I wish you were here."
          Wish You Were Here-Pink Floyd-1975

          G Offline
          G Offline
          G Richard
          wrote on last edited by
          #4

          draw a XOR line useing GDI+! thanks to all the programmers who have helped me.

          1 Reply Last reply
          0
          • C Christian Graus

            No, it does not. I did this by using OnPrtepareDC, and drawing the rubber band or shape to the screen directly, only drawing it to the bitmap at the end of the operation. Christian The tragedy of cyberspace - that so much can travel so far, and yet mean so little.

            G Offline
            G Offline
            G Richard
            wrote on last edited by
            #5

            can you explain it in more detail? the background in the client area is a bitmap, i draw my shape to the screen directly,too. but i don't know how to erase it. thanks to all the programmers who have helped me.

            C 1 Reply Last reply
            0
            • G G Richard

              can you explain it in more detail? the background in the client area is a bitmap, i draw my shape to the screen directly,too. but i don't know how to erase it. thanks to all the programmers who have helped me.

              C Offline
              C Offline
              Christian Graus
              wrote on last edited by
              #6

              It erases itself, because you draw the bitmap to the screen, then draw the line to the screen. Next time you draw the bitmap, the line is not there, so only the new one is drawn. Christian The tragedy of cyberspace - that so much can travel so far, and yet mean so little. "I'm somewhat suspicious of STL though. My (test,experimental) program worked first time. Whats that all about??!?! - Jon Hulatt, 22/3/2002

              1 Reply Last reply
              0
              • G G Richard

                I want to know how to use GDI+ to draw a rubber line? :-D Let's use GDI+ to draw! hoho

                S Offline
                S Offline
                Swinefeaster
                wrote on last edited by
                #7

                You can intermingle gdi and gdi+ code, so yes. SetROP2() is not supported in gdi+ anymore i believe, but you can still call the old SetROP2() as you still have a dc handle somewhere in your code. cheers, swinfeaster Check out Aephid Photokeeper, the powerful digital photo album solution at www.aephid.com.

                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