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. GDI+ Region Outline question

GDI+ Region Outline question

Scheduled Pinned Locked Moved C / C++ / MFC
graphicsquestionwinformshelp
3 Posts 2 Posters 1 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.
  • I Offline
    I Offline
    Iain Clarke Warrior Programmer
    wrote on last edited by
    #1

    I'm having a play with GDI+ drawing in one of my Apps. I have an arbitrary region (made up of all sorts of wacky shapes) that I can draw semi-transparently over a bitmap using a brush with Alpha=64, and Graphics::FillRegion method. Class GDI has a FrameRgn call which draws an outline of a region, but I can't find an equivalent in GDI+. While I could convert a Region to an HRGN, I'd lose some capability like scaling, which I need. Has anyone solved this before? Am I being blind and missing some way of saying "you know that thing you're about to do? Use a hollow-but-edged-brush"... Thanks, Iain.

    Plz sir... CPallini CPallini abuz drugz, plz plz help urgent.

    M 1 Reply Last reply
    0
    • I Iain Clarke Warrior Programmer

      I'm having a play with GDI+ drawing in one of my Apps. I have an arbitrary region (made up of all sorts of wacky shapes) that I can draw semi-transparently over a bitmap using a brush with Alpha=64, and Graphics::FillRegion method. Class GDI has a FrameRgn call which draws an outline of a region, but I can't find an equivalent in GDI+. While I could convert a Region to an HRGN, I'd lose some capability like scaling, which I need. Has anyone solved this before? Am I being blind and missing some way of saying "you know that thing you're about to do? Use a hollow-but-edged-brush"... Thanks, Iain.

      Plz sir... CPallini CPallini abuz drugz, plz plz help urgent.

      M Offline
      M Offline
      Mark Salsbery
      wrote on last edited by
      #2

      GraphicsPath::Outline() is the closest I've found. Mark

      Mark Salsbery Microsoft MVP - Visual C++ :java:

      I 1 Reply Last reply
      0
      • M Mark Salsbery

        GraphicsPath::Outline() is the closest I've found. Mark

        Mark Salsbery Microsoft MVP - Visual C++ :java:

        I Offline
        I Offline
        Iain Clarke Warrior Programmer
        wrote on last edited by
        #3

        Thanks Mark. I'll have a proper look tomorrow. Iain.

        Plz sir... CPallini CPallini abuz drugz, plz plz help urgent.

        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