本文整理了Java中ij.gui.Line.setStrokeColor()
方法的一些代码示例,展示了Line.setStrokeColor()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Line.setStrokeColor()
方法的具体详情如下:
包路径:ij.gui.Line
类名称:Line
方法名:setStrokeColor
暂无
代码示例来源:origin: sc.fiji/Descriptor_based_registration
protected void addCross( final ImagePlus imp, final int x, final int y )
{
Overlay o = imp.getOverlay();
if ( o == null )
{
o = new Overlay();
imp.setOverlay( o );
}
final Line line1 = new Line( x - 3, y, x + 3, y );
final Line line2 = new Line( x, y - 3, x, y + 3 );
line1.setStrokeColor( select );
line2.setStrokeColor( select );
line1.setStrokeWidth( selectWidth );
line2.setStrokeWidth( selectWidth );
o.add( line1 );
o.add( line2 );
imp.updateAndDraw();
}
代码示例来源:origin: net.imagej/ij
int j = (int)(BAR_LENGTH*zoom) - i - 1;
Line line = new Line(x, j+y, thickness+x, j+y);
line.setStrokeColor(new Color(rLUT[iMap]&0xff, gLUT[iMap]&0xff, bLUT[iMap]&0xff));
line.setStrokeWidth(1.0001);
overlay.add(line, CALIBRATION_BAR);
代码示例来源:origin: imagej/ImageJA
int j = (int)(BAR_LENGTH*zoom) - i - 1;
Line line = new Line(x, j+y, thickness+x, j+y);
line.setStrokeColor(new Color(rLUT[iMap]&0xff, gLUT[iMap]&0xff, bLUT[iMap]&0xff));
line.setStrokeWidth(1.0001);
overlay.add(line, CALIBRATION_BAR);
内容来源于网络,如有侵权,请联系作者删除!