正如标题所说,我想知道如何将我的图像制作成透视图。这是一张展示他们如何在 photoshop 中做到这一点的图片:
http://netlumination.com/blog/creating-perspective-and-a-mirror-image-in-photoshop
是否可以在 android 中做这样的事情?
最佳答案
是的。
看看这个页面 http://www.inter-fuser.com/2009/12/android-reflections-with-bitmaps.html . 然后,您可以使用 matrix 应用 AffineTransform(至少在 AWT 中是这样,但 Android 应该也有类似的东西)扭曲/倾斜图像。
编辑:参见http://www.jhlabs.com/ip/filters/index.html用于实现 PerspectiveFilter。
请注意,您也可以使用 openGL 来实现类似的效果。参见 http://developer.android.com/reference/android/opengl/GLU.html和 http://developer.android.com/reference/android/opengl/GLSurfaceView.html
关于java - 透视图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3430368/