如何在Javafx中获得图像的方向?还有如何修复方向如果旋转

发布于 2025-01-23 09:02:54 字数 126 浏览 4 评论 0原文

我正在尝试使用JAVAFX在MySQL数据库中插入图像。当我使用ImageView检索并显示图像时,某些图像在旋转时正确定向(尤其是通过移动相机拍摄的图像)。我需要帮助才能知道如何获得图像的当前方向以及如何在正确的方向或旋转时修复该图像。

I am trying to insert image in mysql database using JavaFX. When I retrieve and display the image using ImageView, some images are correctly oriented while some are rotated ( particularly the images those are taken by camera of mobile). I need help to know how to get the current orientation of an image and how to fix that if it is not in correct orientation or rotated.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文