Click to See Complete Forum and Search --> : GDI+ question: How to get a path from a region ?
OKN
December 9th, 2003, 02:30 AM
What I want to do is the following: (1) create a GraphicsPath; (2) create a second GraphicsPath, (3) create a Region for each path; (4) intersect these two regions getting a Region*. Now the question: how to construct a GraphicsPath around this intersection region ? If there would be something like GraphicsPath(Region*) I wouldn't ask this question ;)
YouAgain
December 10th, 2003, 05:43 AM
Originally posted by OKN
What I want to do is the following: (1) create a GraphicsPath; (2) create a second GraphicsPath, (3) create a Region for each path; (4) intersect these two regions getting a Region*. Now the question: how to construct a GraphicsPath around this intersection region ? If there would be something like GraphicsPath(Region*) I wouldn't ask this question ;)
If you clear these things up for me. I will help you:
(1)What is GraphicsPath ?
(2)What is a reagion in each graph just created ?
(3)Why do you have to make such a graph ?
;)
OKN
December 10th, 2003, 10:05 AM
I'm talking about GDI+ which is a set of C++ classes and somthing like a successor of GDI known as part of the Win32 API. It was introduced by Microsoft with Windows XP (but is available for other Windows versions as well). "GraphicsPath" and "Region" are just such C++ classes within the GDI+ framework. I couldn't figure out that particular functionality:
creating a GraphicsPath object surrounding an arbitrary Region object (with curved boundaries) without coding the algebraic problem "by hand" (crossing curves and such nice things).
codeguru.com
Copyright WebMediaBrands Inc., All Rights Reserved.