Using Drawing2D in the Compact Framework

F

Francis Shanahan

Folks, I have an app using the Drawing2D API available in the full blown
..NET 1.1 framework.

I've found that these are missing from the Compact framework, specifically,
the GraphicsPath types. I need this specifically to make use of it's
IsVisible() function which I was using to determine if a user has clicked a
particular Polygon I am drawing.

Any idea how to get around this?
-fs
 
S

Seth Demsey [MS]

This functionality is not available on the compact framework today. You
could try and use regions to handle this. Specificly, are you trying to do
some hit testing in a non-rectangular region? Is it point-based or curved?

Seth Demsey
Lead Program Manager
.Net Compact Framework

This posting is provided "AS IS" with no warranties, and confers no rights.
 
F

Francis Shanahan

Thanks for the response. I've decided to use an cached off-screen buffer
with each polygon drawn in a unique color. The mouse click will give me the
color under the mouse and I'll use that as an index into the polygons. Hope
that makes sense.

Lots of folks have suggested using regions but no one has explained how to
create a region from anything other than a rectangle. I was able to use
regions in the desktop app using the graphics path but the compact framework
doesn't support this as your stated. Any particular reason?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top