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. XOR Operation

XOR Operation

Scheduled Pinned Locked Moved C / C++ / MFC
graphicswinformshelp
2 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.
  • V Offline
    V Offline
    vijayaramaraju
    wrote on last edited by
    #1

    HI, I'm using GDI+ to draw curves and i want to erase them too, typically in GDI i would have used SetROP2 using R2_XORPEN but i dont find any such thing in GDI+ can anyone help me out erase a particular drawing say a circle or rectangle etc.. instead of erasing and redrawing the whole screen any help would be greatly appreciated.

    K 1 Reply Last reply
    0
    • V vijayaramaraju

      HI, I'm using GDI+ to draw curves and i want to erase them too, typically in GDI i would have used SetROP2 using R2_XORPEN but i dont find any such thing in GDI+ can anyone help me out erase a particular drawing say a circle or rectangle etc.. instead of erasing and redrawing the whole screen any help would be greatly appreciated.

      K Offline
      K Offline
      Kamyar Souri
      wrote on last edited by
      #2

      Yes , Thre is not any raster operation in GDI+! If you are drawing the curve pixel by pixel, add the pixels behind the curve to a list, and redraw them after. else redraw only the rect that covers by the curve. but somewhere I have read that It may be better to switch back to GDI somtimes;) Kamyar Souri Booria CAD/CAM Systems www.booria.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