private WritableImage textToImage(String text) {
Text t = new Text(text);
Scene scene = new Scene(new StackPane(t));
return t.snapshot(null, null);
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
852 次 |
| 最近记录: |