且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在JavaFX中使用鼠标绘制或绘制网格,然后可以对其进行纹理处理和变形?

更新时间:2023-11-24 08:53:04

我已经读完您的问题了:-)与这里的许多人相比,您至少提供了关于要实现的目标的清晰描述.根据我自己的经验,我想说,使用JavaFX可以轻松实现您想做的事情,而MeshView就是您的理想之选. 您可以将图像用作该网格的纹理,并且可以通过操纵该网格的顶点来使图像变形.我已经为一个项目自己实现了部分功能,所以我知道它可以工作.

I have read your question till the end :-) In contrast to many people here you are at least providing a clear description of what you want to achieve. According to my own experience I would say that what you want to do is easily possible with JavaFX and the MeshView is the way to go here. You can use your image as the texture for this mesh and you can distort the image by manipulating the vertices of this mesh. I have implemented part of your functionality myself for a project so I know that it works.