本文整理了Java中ij.ImageJ.setIconImage()
方法的一些代码示例,展示了ImageJ.setIconImage()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ImageJ.setIconImage()
方法的具体详情如下:
包路径:ij.ImageJ
类名称:ImageJ
方法名:setIconImage
暂无
代码示例来源:origin: net.imagej/ij
void setIcon() throws Exception {
URL url = this.getClass().getResource("/microscope.gif");
if (url==null) return;
Image img = createImage((ImageProducer)url.getContent());
if (img!=null) setIconImage(img);
}
代码示例来源:origin: imagej/ImageJA
void setIcon() throws Exception {
URL url = this.getClass().getResource("/microscope.gif");
if (url==null) return;
Image img = createImage((ImageProducer)url.getContent());
if (img!=null) setIconImage(img);
}
代码示例来源:origin: sc.fiji/fiji-compat
public static void run(String title, String iconPath) {
try {
ImageJ ij = IJ.getInstance();
if (ij == null)
return;
if (title != null)
ij.setTitle(title);
URL url = new URL(iconPath);
ImageProducer ip = (ImageProducer)url.getContent();
Image img = ij.createImage(ip);
if (img!=null)
ij.setIconImage(img);
} catch (Exception e) {
IJ.error("Could not set the icon: '" + iconPath + "'");
e.printStackTrace();
}
}
}
代码示例来源:origin: net.imagej/imagej-legacy
final Object producer = iconURL.getContent();
final Image image = ij1.createImage((ImageProducer) producer);
ij1.setIconImage(image);
if (IJ.isMacOSX()) try {
内容来源于网络,如有侵权,请联系作者删除!