Find the center of the triangle. (you can draw grc line overlays to help with this) Make a grc square, and set its loc (center) matching the point you found for the center of the triangle. If it cuts off the top of the triangle, make the square bigger and recenter. Do this until the point of the triangle is just inside the square. Hide your guidelines and borders and "import snapshot from rect (the rect of grc "mysquaregraphic") of window (the windowid of this stack) (making sure nothing is in the way)
Heres a link to a quicky example (I left the border on so you can see the square position) https://dl.dropboxusercontent.com/u/11957935/triangle.png _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode