【发布时间】:2014-05-28 20:48:31
【问题描述】:
我正在显示的图像视图中选择图像的某些区域。然后我对显示在imageview中的那个位图的选定像素做一些工作。但我无法击中用户选择的那些像素。我知道我必须对显示的图像和实际位图进行一些像素映射。查看图片以更好地了解我的问题。
用户使用圆形选择器选择一些像素
处理后受影响的像素与用户选择的不同
我已经尝试过类似的方法来获得准确的像素
Bitmap image = EyeColorChangerActivity.getImageBitmap();
int displayedwidht = image.getWidth();
int displayedheight = image.getHeight();
x = x*((float)displayedwidht/mScreenWidth);
y = y*((float)displayedheight/mScreenHeight);
【问题讨论】:
-
你想达到什么目的?
-
我想改变选定像素的颜色