Hi,
I'm interested by the plugin "Series labeler" (ability to choose the font...) but in contrary to the classic "Time Stamper" the "unit format" moves when it changes from units to tens, to hundreds... as an example: 1 sec 2 sec ... 10 sec ^ <- Here 'sec' moved rather than 1 sec 2 sec ... 10 sec ^ <- Here the numbers shifted left to make 'sec' stay in the same position in the Will it be possible to fix it ? or to send us the source code? Regards, Romain GUIET --------------------------------------------------------------- Dr. Romain Guiet Bioimaging and Optics Platform (PT-BIOP) Ecole Polytechnique Fédérale de Lausanne (EPFL) Faculty of Life Sciences Station 19, AI 0241 CH-1015 Lausanne Phone: [+4121 69] 39629 http://biop.epfl.ch/ --------------------------------------------------------------- -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
On Jun 3, 2013, at 10:16 AM, Guiet Romain wrote:
> Hi, > > I'm interested by the plugin "Series labeler" (ability to choose the font...) but in contrary to the classic "Time Stamper" the "unit format" moves when it changes from units to tens, to hundreds... > as an example: > 1 sec > 2 sec ... > 10 sec > ^ <- Here 'sec' moved > rather than > 1 sec > 2 sec ... > 10 sec > ^ <- Here the numbers shifted left to make 'sec' stay in the same position in the > > Will it be possible to fix it ? or to send us the source code? Use the built in Image>Stacks>Label command. Here is an example macro that creates, as an overlay, time stamps that use 100 point "Comic Sans MS" font: newImage("Untitled", "8-bit black", 500, 500, 15); call("ij.gui.TextRoi.setFont", "Comic Sans MS", 100, 0); setForegroundColor(255, 0, 0); run("Label...", "format=0 x=50 y=100 font=100 text=sec use_text use"); And here is a JavaScript/BeanShell/Java version: imp = IJ.createImage("Untitled", "8-bit black", 500, 500, 15); TextRoi.setFont("Comic Sans MS", 100, 0); IJ.setForegroundColor(255, 0, 0); IJ.run(imp, "Label...", "format=0 x=50 y=100 font=100 text=sec use_text use"); imp.show(); -wayne -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
It works fine this way,
thanks a lot ! Romain --------------------------------------------------------------- Dr. Romain Guiet Bioimaging and Optics Platform (PT-BIOP) Ecole Polytechnique Fédérale de Lausanne (EPFL) Faculty of Life Sciences Station 19, AI 0241 CH-1015 Lausanne Phone: [+4121 69] 39629 http://biop.epfl.ch/ --------------------------------------------------------------- ________________________________________ De : ImageJ Interest Group [[hidden email]] de la part de Rasband, Wayne (NIH/NIMH) [E] [[hidden email]] Date d'envoi : lundi 3 juin 2013 17:10 À : [hidden email] Objet : Re: Series Labeler On Jun 3, 2013, at 10:16 AM, Guiet Romain wrote: > Hi, > > I'm interested by the plugin "Series labeler" (ability to choose the font...) but in contrary to the classic "Time Stamper" the "unit format" moves when it changes from units to tens, to hundreds... > as an example: > 1 sec > 2 sec ... > 10 sec > ^ <- Here 'sec' moved > rather than > 1 sec > 2 sec ... > 10 sec > ^ <- Here the numbers shifted left to make 'sec' stay in the same position in the > > Will it be possible to fix it ? or to send us the source code? Use the built in Image>Stacks>Label command. Here is an example macro that creates, as an overlay, time stamps that use 100 point "Comic Sans MS" font: newImage("Untitled", "8-bit black", 500, 500, 15); call("ij.gui.TextRoi.setFont", "Comic Sans MS", 100, 0); setForegroundColor(255, 0, 0); run("Label...", "format=0 x=50 y=100 font=100 text=sec use_text use"); And here is a JavaScript/BeanShell/Java version: imp = IJ.createImage("Untitled", "8-bit black", 500, 500, 15); TextRoi.setFont("Comic Sans MS", 100, 0); IJ.setForegroundColor(255, 0, 0); IJ.run(imp, "Label...", "format=0 x=50 y=100 font=100 text=sec use_text use"); imp.show(); -wayne -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Can I create a new image and put it in JPanel.
|
Free forum by Nabble | Edit this page |