GDI+ Region Outline question
-
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.
-
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.
GraphicsPath::Outline() is the closest I've found. Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
GraphicsPath::Outline() is the closest I've found. Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
Thanks Mark. I'll have a proper look tomorrow. Iain.
Plz sir... CPallini CPallini abuz drugz, plz plz help urgent.