Artwork below Mouse Point
hello,
is there way find artwork/layer below given location of mouse?
thanks,
hitesh
hello,
you can use aihittest.h suite.
aitoolhitdata hitdata;
aihitref hitref;
int distance;
error = saihit-> hittestex (nil, & message-> cursor, distance, knolockedpainthitrequest, & hitref);
to test if object under cursor.
error = saihit-> gethitdata (hitref, & hitdata);
if (hitdata.hit hitdata.object &&! = null)
{/ / if object under cursor.
....
}
jlg.
More discussions in Illustrator SDK
adobe
Comments
Post a Comment