从特定角度旋转图像fingure移动在屏幕上的android [英] Rotate image from specific point as fingure moves on screen in android

查看:137
本文介绍了从特定角度旋转图像fingure移动在屏幕上的android的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用程序需要旋转图像这是另一个形象,感觉都被加入了在特定的点。这点是上图像的像素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

这篇关于从特定角度旋转图像fingure移动在屏幕上的android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆