Rotated text in ImageJ

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Rotated text in ImageJ

Thomas McGlynn
For the past year or so I've been using ImageJ to generate
JPEGs (and GIFs and ...) from astronomical images.  However
one feature that I was unable to find in ImageJ that
I've needed was the ability to plot text at arbitrary
angles.  This is very useful for coordinate grids and
contours and the like.  I've customized my version of ImageJ to
support this, but [though this may be a bit late
for posing the question] I'd prefer to use something
more standard, e.g., use something like
    ImageProcessor.drawString(text, x, y, angle)
where angle is an arbitrary angle in degrees.

Have I overlooked something that's already in ImageJ?
Is this cability be of more general interest?  I couldn't
find anything in the documentation, a quick search of
the mail archives or Google, but I'm really just a dabbler
in ImageJ so I could easily have missed it.

I'd be happy to share the code/approach I used, but I'm
not sure it will generalize to all the kinds of images
supported in ImageJ.

        Regards,
        Tom McGlynn
        NASA/GSFC