Changing the cursor image - How?

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

Changing the cursor image - How?

Denny Hugg
Working with photomicrographs of trematodes (Platyhelminthes: Digenea)  to
be measured at 4X to 40X. Running Linux Ubuntu 10.10 "Maverick Meerkat".
I've hunted the documentation and searched/scanned all directories, pounded
the Internet and can not find a reference or method of exchanging the
cursor image to one with crosshairs and a hollow (transparent) core. I've
built the image I want but can't discover where ImageJ 1.46e expects to
find it.

Can someone please advise of or direct to documentation describing the
location of the cursor image?
Reply | Threaded
Open this post in threaded view
|

Re: Changing the cursor image - How?

dscho
Hi Denny,

On Mon, 30 Jan 2012, Denny Hugg wrote:

> Working with photomicrographs of trematodes (Platyhelminthes: Digenea)  to
> be measured at 4X to 40X. Running Linux Ubuntu 10.10 "Maverick Meerkat".
> I've hunted the documentation and searched/scanned all directories, pounded
> the Internet and can not find a reference or method of exchanging the
> cursor image to one with crosshairs and a hollow (transparent) core. I've
> built the image I want but can't discover where ImageJ 1.46e expects to
> find it.

Code to change the cursor can be found here:
http://fiji.sc/MenuItemDiverter.java#l78

The problem is that the cursor in ImageJ is hardcoded:
fiji.sc/cgi-bin/gitweb.cgi?p=ImageJA.git;a=blob;f=src/main/java/ij/gui/ImageCanvas.java;h=78718c70335ecb770414c0ee4b9337177891617f;hb=refs/heads/master#l23

Sorry,
Johannes
Reply | Threaded
Open this post in threaded view
|

Re: Changing the cursor image - How?

Rasband, Wayne (NIH/NIMH) [E]
In reply to this post by Denny Hugg
On Jan 30, 2012, at 11:13 AM, Denny Hugg wrote:

> Working with photomicrographs of trematodes (Platyhelminthes: Digenea)  to
> be measured at 4X to 40X. Running Linux Ubuntu 10.10 "Maverick Meerkat".
> I've hunted the documentation and searched/scanned all directories, pounded
> the Internet and can not find a reference or method of exchanging the
> cursor image to one with crosshairs and a hollow (transparent) core. I've
> built the image I want but can't discover where ImageJ 1.46e expects to
> find it.
>
> Can someone please advise of or direct to documentation describing the
> location of the cursor image?
The ImageJ 1.46f daily build, on startup, looks for a custom cursor image named "crosshair-cursor.gif" in the ImageJ/images folder. If found, ImageJ will use it instead of the standard crosshair cursor. There is an example custom cursor image at

   http://imagej.nih.gov/ij/images/crosshair-cursor.gif

[cid:[hidden email]]

[cid:[hidden email]]

crosshair-cursor.jpg (14K) Download Attachment
crosshair-cursor.gif (170 bytes) Download Attachment