Re: custom cursor?
Posted by
Michael Schmid on
May 13, 2016; 9:11am
URL: http://imagej.273.s1.nabble.com/custom-cursor-tp5016417p5016419.html
On 2016-05-13 07:13, Kenneth Sloan wrote:
> I would like to modify the cursor, under Java plugin control ...
Hi Kenneth,
yes, you can have a custom cursor with Java AWT:
BufferedImage image = ... from wherever you take it (PNG, GIF, array)
Point hotSpot = new Point(x_coordinate, y_coordinate);
Cursor cursor = toolkit.createCustomCursor(image, hotSpot, "name of
cursor");
Michael
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html