解决方案 »
- android模拟器与手机获取网络资源的问题
- 问下:目前安卓2.0和4.0开发有什么区别吗?
- android MapView 使用问题 急急急!
- 关于Exception的问题
- youtube中采用json解析如何得到视频的所有评语?
- 关于蓝牙rssi强度转换成距离的问题~~~~
- 用手机从网页上下载的apk,下载完成怎样自动安装
- 安卓手机能判断是否在播放视频吗?
- 有没有大神给我讲下SurfaceView或者推荐一些好文章,我是在是搞不定!
- android 帮我解释一句话:private Integer type=0;
- 求助关于安卓开发所需要的东西
- activity onkeydown 无响应,del按键能响应 神马情况?
{
int count = 0;
int preColor = 0;
int prepreColor = 0;
int color = 0;
preColor = pBuffer[0]; int i = 0;
int j = 0;
int iPixel = 0;
for (i = 0; i < width; i++) {
for (j = 0; j < height; j++) {
int curr_color = pBuffer[j * width + i]; int avg = (red(curr_color) + green(curr_color) + blue(curr_color))
/ 3;
if (avg >= threshold) {
iPixel = topColor;
} else {
iPixel = bottomColor;
} pFill[j * width + i] = iPixel;
}
}
}