Login  Register

Re: New user of ImageJ has a question about inserting text on an image.

Posted by Jerome Mutterer-3 on Jul 17, 2013; 4:55pm
URL: http://imagej.273.s1.nabble.com/New-user-of-ImageJ-has-a-question-about-inserting-text-on-an-image-tp5004002p5004003.html

Dear Barry,

Rotate your image in one direction, place your text, Rotate your image the
other direction.
Here is a macro example that does this:
Open a new macro with the Plugins>New>Macro command, then paste the
following:

newImage("Untitled", "RGB ramp", 300, 200, 1);
run("Rotate 90 Degrees Right");
setForegroundColor(255, 255, 255);
setFont("SansSerif", 18, " antialiased");
drawString("my text", 10, 30);
run("Rotate 90 Degrees Left");

Run the macro with CTRL-R.
Remove the new image statement to run it on your image.

Sincerely,

Jerome.


On 17 July 2013 18:22, Barry Stephens <[hidden email]> wrote:

> Hello Everyone,
>      I am new to this forum and new to using imageJ.  I can see it is a
> great program that has an infinite range of usage.  However, I just need to
> know how to post text on an imagine that is vertical instead of horizontal.
>  I know how to place a text on the image, I would just like to have that
> text vertical.  If there is a script I can write would someone out there
> help me with writing that script.  I am very new to everything so be gentle
> on me.
>
> Thank you,
>
> Barry Stephens
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html