从特定角度旋转图像fingure移动在屏幕上的android图像、角度、屏幕上、fingure

由网友(至屎方休)分享简介:在我的应用程序需要旋转图像这是另一个形象,感觉都被加入了在特定的点。这点是上图像的像素15,15。当用户手指的电影在下面像面我需要旋转上的图像因为二者都是固定的点,这样需要旋转图像上围绕该点。对于我使用In my application i need to rotate an image which is on an...

在我的应用程序需要旋转图像这是另一个形象,感觉都被加入了在特定的点。这点是上图像的像素15,15。当用户手指的电影在下面像面我需要旋转上的图像因为二者都是固定的点,这样需要旋转图像上围绕该点。对于我使用

In my application i need to rotate an image which is on another image and it feel both are joined at particular point. That point is on upper image at pixel 15,15. when user movies finger on below image surface i need to rotate upper image as both are fixed by that point so need to rotate upper image around that point. for that i use

resizedBitmap = Bitmap.createBitmap(bitmapOrg,0,0,宽度,高度,矩阵,真);   image.setImageBitmap(resizedBitmap);   matrix.setRotate(旋转,CenterOfRotationX,CenterOfRotationY);

resizedBitmap = Bitmap.createBitmap(bitmapOrg, 0,0,width, height, matrix, true); image.setImageBitmap(resizedBitmap); matrix.setRotate(rotation, CenterOfRotationX, CenterOfRotationY);

但是这一点并不打算修复它从它的地方还在动。 如果有一个人有任何想法如何旋转图像特定点或演示此,请帮助我。

but that point is not looking fix it still moving from its place. if some one has any idea how to rotate image with particular point or any demo for this please help me.

感谢你。   维克拉姆。

Thank You. Vikram.

推荐答案

这是本教程可能是有用的U

this is the tutorial may be useful to u

http://www.anddev.org/resize_and_rotate_image_-_example-t621.html

阅读全文

相关推荐

最新文章