Are this textures?

别等时光非礼了梦想. 提交于 2019-12-13 15:46:15

问题


Now my app looks like this

What I did http://i56.tinypic.com/6577zd.png

(it is a image set as background and an ImageView. Every time the ImageView is touch, the background is changing, so the person is "rotating"). How can I mach some regions from image to look like this:

What i Want http://i56.tinypic.com/2dipm3m.jpg

Are this textures? I mention that there areas are changing when the person is rotating (background is changed)...so this means that the dimension of this images is changing every time the ImageView is touch.

Any idea is welcome. Now I am block here and i don't know what to do.


回答1:


You need to compose your image by adding semi-translucent layers.

You can achieve that easily with any 2D API or with OpenGL, just use any ARGB colour model and set the Alpha channel to 50% for example, then and paint over with the rectangles.

About the positioning, that is something that you should work out by yourself, depending on how the image is changing. If you have a small set of images, maybe the easiest way is to record the hand-generated coordinate mappings in some configuration file; otherwise you'll need to deal with some nasty image-recognition problems...



来源:https://stackoverflow.com/questions/7808009/are-this-textures

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!