本文整理了Java中javafx.scene.image.ImageView.setClip()
方法的一些代码示例,展示了ImageView.setClip()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ImageView.setClip()
方法的具体详情如下:
包路径:javafx.scene.image.ImageView
类名称:ImageView
方法名:setClip
暂无
代码示例来源:origin: stackoverflow.com
clip.setArcWidth(20);
clip.setArcHeight(20);
imageView.setClip(clip);
imageView.setClip(null);
代码示例来源:origin: jfoenixadmin/JFoenix
huesCircleView.setClip(Path.subtract(outterCircle, innterCircle));
this.getChildren().add(huesCircleView);
slCircleView.setClip(new Circle(centerX, centerY, slRadius - 2));
slCircleView.setPickOnBounds(false);
this.getChildren().add(slCircleView);
代码示例来源:origin: stackoverflow.com
imageView.setClip(new ImageView(image));
代码示例来源:origin: Tristan971/Lyrebird
@Override
public void initialize() {
currentUserPpBox.setClip(Clipping.getCircleClip(24.0));
otherPpBox.setClip(Clipping.getCircleClip(24.0));
textualContent();
profilePictures();
}
代码示例来源:origin: com.nexitia.emaginplatform/emagin-jfxcore-engine
clip.setArcWidth(180);
clip.setArcHeight(180);
imageView.setClip(clip);
代码示例来源:origin: Tristan971/Lyrebird
MEDIA_PREVIEW_IMAGE_SIZE * 0.25
);
imageView.setClip(previewClip);
return imageView;
} catch (final MalformedURLException e) {
代码示例来源:origin: stackoverflow.com
clip.setArcWidth(20);
clip.setArcHeight(20);
imageView.setClip(clip);
imageView.setClip(null);
代码示例来源:origin: ch.sahits.game/OpenPatricianJavaFX
ImageView imgView = new ImageView(img);
Shape clip = createSegmentedShape(img.getWidth(), img.getHeight(), (List<Integer>) parameters.get(paramName));
imgView.setClip(clip);
((StackPane) specialNode1).getChildren().addAll(ph, imgView);
break;
代码示例来源:origin: Tristan971/Lyrebird
private void displayApplicationAuthor() {
applicationAuthorProfileLink.setOnAction(e -> userDetailsService.openUserDetails("_tristan971_"));
userDetailsService.findUser("_tristan971_")
.map(User::getProfileImageURLHttps)
.map(cachedMedia::loadImage)
.onSuccess(applicationAuthorProfilePicture::setImage)
.andThen(() -> applicationAuthorProfilePicture.setClip(Clipping.getCircleClip(16.0)));
}
代码示例来源:origin: Tristan971/Lyrebird
clipRectangle.layoutXProperty().bind(imageView.layoutXProperty());
clipRectangle.layoutYProperty().bind(imageView.layoutYProperty());
imageView.setClip(clipRectangle);
containerPane.getChildren().setAll(imageView);
代码示例来源:origin: Tristan971/Lyrebird
@Override
public void initialize() {
userProfilePictureBorder.visibleProperty().bind(sessionManager.isLoggedInProperty());
userProfilePicture.setClip(Clipping.getCircleClip(32.0));
userProfilePicture.setImage(CONTROLBAR_ADD_USER.getImage());
userProfilePicture.setOnMouseClicked(e -> handleClickOnProfile());
bindUsername();
bindProfilePicture();
}
代码示例来源:origin: ch.sahits.game/OpenPatricianDisplay
});
resetImage(mapImage, slaveClip.getWidth(), slaveClip.getHeight(), scale.doubleValue());
imgView.setClip(clip);
shipCanvas.setClip(slaveClip);
shipCanvas.setMouseTransparent(true);
代码示例来源:origin: com.jfoenix/jfoenix
huesCircleView.setClip(Path.subtract(outterCircle, innterCircle));
this.getChildren().add(huesCircleView);
slCircleView.setClip(new Circle(centerX, centerY, slRadius - 2));
slCircleView.setPickOnBounds(false);
this.getChildren().add(slCircleView);
代码示例来源:origin: Tristan971/Lyrebird
@Override
public void initialize() {
followButton.setDisable(true);
userBanner.fitWidthProperty().bind(userDetailsVBox.widthProperty());
userBanner.fitHeightProperty().bind(userDetailsVBox.heightProperty());
userBanner.setPreserveRatio(false);
userBanner.setImage(ImageResources.BACKGROUND_DARK_1PX.getImage());
userProfilePictureImageView.setImage(ImageResources.GENERAL_USER_AVATAR_LIGHT.getImage());
final Rectangle profilePictureClip = Clipping.getSquareClip(290.0, 50.0);
userProfilePictureImageView.setClip(profilePictureClip);
if (targetUserProp.getValue() == null) {
this.targetUserProp.addListener((o, prev, cur) -> displayTargetUser());
} else {
displayTargetUser();
}
}
内容来源于网络,如有侵权,请联系作者删除!