mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-13 05:57:00 -04:00
Added convex hull function to ContourMask for drawing nicer borders around masked fields
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@780 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -151,6 +151,9 @@ class AlphaMask : public IntrusivePtrBase<AlphaMask> {
|
||||
/// Is the given location fully transparent?
|
||||
bool isTransparent(int x, int y) const;
|
||||
|
||||
/// Determine a convex hull polygon *around* the mask
|
||||
void convexHull(vector<wxPoint>& points) const;
|
||||
|
||||
/// Size of the mask
|
||||
wxSize size;
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user