Login  Register

Re: font size for outline labels

Posted by Michael Schmid on Jan 11, 2008; 10:29am
URL: http://imagej.273.s1.nabble.com/font-size-for-outline-labels-tp3697609p3697610.html

Hi Simon,

I fear that the user currently can't change that.
Label font and size are hardcoded in line 357 of the
ParticleAnalyzer.java:

drawIP.setFont(new Font("SansSerif", Font.PLAIN, 9));


What you could try as a workaround is take articleAnalyzer.java
from the sources and convert it into an external plugin:
- Rename it (and the class in line 28) to Particle_Analizer
- In Line 1, "replace package ij.plugin.filter;" by
   "import ij.plugin.filter.*;"
Then use "Compile and Run" as with other plugins.

I don't know whether it works with the ParticleAnalyzer, but
for most plugins in ij.plugin.filter this works.

In your plugin, you can use whatever font size you like.


Michael
________________________________________________________________

On 11 Jan 2008, at 04:34, Simon Hamlet wrote:

> I am using ImageJ to analyse leaf area. Using 200 dpi A4 scans.
> Is there a way to have the program return large sized number labels  
> for
> the outlines when using Analyse Particles.
>
> A large part of my processing time is taken up zooming in an  
> getting these
> numbers.
>
> If thy were larger I would be able to access them from the preview  
> of the
> whole scan.