Re: Transparent Image overlays do not work on Mac OSX Yosemite with latest Apple Java 6
Posted by
Rasband, Wayne (NIH/NIMH) [E] on
Dec 13, 2014; 9:14pm
URL: http://imagej.273.s1.nabble.com/Transparent-Image-overlays-do-not-work-on-Mac-OSX-Yosemite-with-latest-Apple-Java-6-tp5010939p5010940.html
On Dec 13, 2014, at 3:01 PM, John Minter <
[hidden email]> wrote:
>
> I have started working with transparent image overlays to overlay an X-ray
> EDS map on the image from the area using an opacity of 50%. This works very
> nicely on Windows with the Oracle JDK (1.6.0_24) and on MacOSX Yosemite
> with Oracle Java 7 (1.7.0_71) and Java 8 (1.8.0_25) JDKs but not with the
> latest Apple Java 6 (JavaForOSX2014-001, Java 1.6.0_65).
This seems to only be a problem with RGB image overlays. The following JavaScript example, which uses an 8-bit image overlay, works as expected using Java 1.6.0_65 on OS X Yosemite.
img = IJ.openImage("
http://imagej.nih.gov/ij/images/leaf.jpg");
img2 = IJ.openImage("
http://imagej.nih.gov/ij/images/clown.jpg");
ip = img2.getProcessor();
ip = ip.convertToByte(false);
imageRoi = new ImageRoi(100, 100, ip);
imageRoi.setOpacity(0.5);
img.setRoi(imageRoi);
img.show();
> Thought I should report this in case others are puzzled by this or if there
> is a configuration for Java 6 I am missing.
>
> Best Regards,
> John
>
> --
> ImageJ mailing list:
http://imagej.nih.gov/ij/list.html--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html