[英]How to draw Image pattern with javaFX Canvas
我想在javafx画布上绘制重复的图像,除了手动反复重复绘制相同的图像之外,还有其他方法可以做到吗?
This can be done by setting the Paint for filling some area. 这可以通过将“ Paint”设置为填充某些区域来完成。 A subclass of Paint is
Paint的子类是
https://openjfx.io/javadoc/12/javafx.graphics/javafx/scene/paint/ImagePattern.html https://openjfx.io/javadoc/12/javafx.graphics/javafx/scene/paint/ImagePattern.html
which does exactly what you want. 正是您想要的。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.