ij.gui.Line.setStrokeColor()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(1.2k)|赞(0)|评价(0)|浏览(154)

本文整理了Java中ij.gui.Line.setStrokeColor()方法的一些代码示例,展示了Line.setStrokeColor()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Line.setStrokeColor()方法的具体详情如下:
包路径:ij.gui.Line
类名称:Line
方法名:setStrokeColor

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);

相关文章