Hit test for drawable objects
Posted: 2010-10-21T08:08:27-07:00
Hello. This question is about the Magick++ API on Windows.
In my C++ program, I have instantiated a few renderable Drawable objects. Is there any way for me to test whether a given coordinate (such as the mouse cursor location) is:
1. Upon (or near) the drawable object boundary (stroke)? For example, on the stroke of a circle, or an ellipse.
2. Within the closed object shape, such as within a circle?
3. Both the above, AFTER an affine transform has been applied to the drawable object?
Will appreciate any guidance on this.
Thanks in advance.
SN
In my C++ program, I have instantiated a few renderable Drawable objects. Is there any way for me to test whether a given coordinate (such as the mouse cursor location) is:
1. Upon (or near) the drawable object boundary (stroke)? For example, on the stroke of a circle, or an ellipse.
2. Within the closed object shape, such as within a circle?
3. Both the above, AFTER an affine transform has been applied to the drawable object?
Will appreciate any guidance on this.
Thanks in advance.
SN