javafx.scene.image.ImageView.getFitWidth()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(1.4k)|赞(0)|评价(0)|浏览(122)

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

ImageView.getFitWidth介绍

暂无

代码示例

代码示例来源:origin: stackoverflow.com

imageView.getFitWidth(), imageView.getFitHeight()
);
clip.setArcWidth(20);

代码示例来源:origin: net.sf.dcutils/dcutils

public double getWidth() {
 return this.sprite.getFitWidth();
} // END getWidth

代码示例来源:origin: stackoverflow.com

imageView.getFitWidth(), imageView.getFitHeight()
);
clip.setArcWidth(20);

代码示例来源:origin: com.bitplan.radolan/com.bitplan.radolan

/**
 * show the sizes of stage, scene, and the given other nodes
 * 
 * @param region
 *          - the regions to show
 */
public void showSizes(Region... regions) {
 System.out.println("Sizes: ");
 ObservableList<Screen> screens = Screen.getScreensForRectangle(stage.getX(),
   stage.getY(), stage.getWidth(), stage.getHeight());
 for (Screen screen : screens) {
  Rectangle2D s = screen.getVisualBounds();
  showSize(screen, s.getWidth(), s.getHeight());
 }
 showSize(stage, stage.getWidth(), stage.getHeight());
 showSize(getScene(), getScene().getWidth(), getScene().getHeight());
 ImageView imageView = mapView.getImageView();
 showSize(imageView, imageView.getFitWidth(), imageView.getFitHeight());
 Image image = mapView.getImage();
 showSize(image, image.getWidth(), image.getHeight());
 for (Region region : regions) {
  showSize(region, region.getWidth(), region.getHeight());
 }
}

相关文章