Re: Drawing Arrows with a Macro?
Posted by
jmutterer on
Mar 24, 2010; 8:12am
URL: http://imagej.273.s1.nabble.com/Drawing-Arrows-with-a-Macro-tp3688816p3688817.html
Adam,
include this function in your macro:
function makeArrow(x,y,x1,y1) {
eval('script','img = IJ.getImage();a= new
Arrow('+x+','+y+','+x1+','+y1+');img.setRoi(a);');
}
You can then use the makeArrow (x,y,x1,y1) function that will draw an arrow
between to two given points, using the curent arrows settings.
Jerome
On Wed, Mar 24, 2010 at 7:53 AM, Adam Cliffe <
[hidden email]>wrote:
> Does anyone know a good way of drawing an arrow using the Arrow tool with a
> macro?
> I've tried:
>
> setTool("arrow");
> makeLine(169, 193, 171, 194);
> run("Draw", "slice");
>
> but it doesn't work...
>
> thanks
>
> Adam
>
>
>
>
>
> Dr Adam Cliffe
> Research Scientist, Rorth Lab
>
> Institute of Molecular and Cell Biology
> 61 Biopolis Drive
> Proteos
> Singapore 138673
>
> tel: +65 6586 9731
>
>
>
>
>
>
>
>
>
> Note: This message may contain confidential information. If this Email/Fax
> has been sent to you by mistake, please notify the sender and delete it
> immediately. Thank you.
>