Hello,
I have a project that uses the ABExtDrawing library to generate graphic regions on a google map. The regions end up being somewhat complex, intersecting rectangles, circles, etc. I would like to write a function that can return the area of the region, and I found a few methods online that rely on the Android RegionIterator object (http://developer.android.com/reference/android/graphics/RegionIterator.html). I would like to know if there's a way that I can use the reflection library to construct a RegionIterator object by passing my region to it. The code I've tried so far fails though because I'm passing an ABRegion object.
Is there a way I'm not realizing to somehow turn my ABRegion into a native Android region?
Thanks in advance.
I have a project that uses the ABExtDrawing library to generate graphic regions on a google map. The regions end up being somewhat complex, intersecting rectangles, circles, etc. I would like to write a function that can return the area of the region, and I found a few methods online that rely on the Android RegionIterator object (http://developer.android.com/reference/android/graphics/RegionIterator.html). I would like to know if there's a way that I can use the reflection library to construct a RegionIterator object by passing my region to it. The code I've tried so far fails though because I'm passing an ABRegion object.
Is there a way I'm not realizing to somehow turn my ABRegion into a native Android region?
Thanks in advance.