ImageJ Cursor

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

ImageJ Cursor

Gregory James
Dear ImageJ mailing list,

This is hopefully a very simple question with a very simple answer. I'm trying to customise the ImageJ cursor by making a GIF image in the ImageJ/images folder. This is working except the background of the cursor is solid. My question is... Is there a way to make the background transparent? I've looked at previous posts on this issue but I haven't found an answer. I'm trying to replicate the lovely crosshair cursor that I get on Windows XP (thin lines). I don't like the one I get on Windows 7 (horrible thick lines).

Thank you,

Greg.

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: ImageJ Cursor

Rasband, Wayne (NIH/NIMH) [E]
On Dec 2, 2013, at 10:28 AM, Gregory James wrote:

> Dear ImageJ mailing list,
>
> This is hopefully a very simple question with a very simple answer. I'm trying to customise the ImageJ cursor by making a GIF image in the ImageJ/images folder. This is working except the background of the cursor is solid. My question is... Is there a way to make the background transparent? I've looked at previous posts on this issue but I haven't found an answer. I'm trying to replicate the lovely crosshair cursor that I get on Windows XP (thin lines). I don't like the one I get on Windows 7 (horrible thick lines).

You have to save the GIF image with a transparent background. You do this be setting "GIF and PNG transparent index" in the Edit>Options>Input/Output dialog box to the lookup table index value you want to be transparent and then using File>Save As>Gif to save the image in the ImageJ/images folder. There is an example custom cursor at <http://imagej.nih.gov/ij/images/crosshair-cursor.gif>.

-wayne

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: ImageJ Cursor

Gregory James
In reply to this post by Gregory James
Thanks Wayne,

One last question... Is there a way to get the cursor to invert with the lookup table of the image? i.e. I would like a black cursor with a mostly white image and a white cursor with a mostly black image.

Greg.

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