Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有这张图片,我想在 JavaFX 应用程序中显示。
我测试使用setFitHeight,setFitWidth但图像缩小。我想缩放原始图片并仅显示图像的中心,保持原始大小。这可能吗?
setFitHeight
setFitWidth
在 ImageView 中定义视口。