how to creatre elliptic reigion? Topic is solved

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
waterj
Earned a small fee
Earned a small fee
Posts: 21
Joined: Mon Nov 07, 2005 8:39 am

how to creatre elliptic reigion?

Post by waterj » Wed Nov 30, 2005 10:02 am

hi, guys. Is there any way to create an elliptic region but wxRegion(wxBitmap&, wxColour&)? wxRegion from bitmap are very slow.

phlox81
wxWorld Domination!
wxWorld Domination!
Posts: 1387
Joined: Thu Aug 18, 2005 7:49 pm
Location: Germany
Contact:

Post by phlox81 » Wed Nov 30, 2005 11:19 am

Maybe handling a wxPoint Array,
and inserting the shape of an ellipse into it,
is faster, but still not the best.
wxRegion(size_t n, const wxPoint *points, int fillStyle = wxWINDING_RULE)

Also the question is, how accurate you want the ellipse to be,
the less Points you have, the faster it is probably.

Post Reply