在获取Android的位图图像的像素值 [英] Get pixel values of a bitmap image in Android

查看:87
本文介绍了在获取Android的位图图像的像素值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要开发一个Android应用程序,它在做图像输入一些图像处理。对于这一点,我需要得到在任一数组或一个对象的位图的像素值。谁能帮我抢位图图像的像素级别的细节。

I need to develop an android application which do some image processing on the image input. For this, I need to get the pixel values of the bitmap in either an array or an object. Can anyone help me to grab the pixel-level details of a bitmap image.

谢谢!

推荐答案

得到位图的像素阵列

bitmap.getPixels(pixels, offset, stride, x, y, width, height);

在阵列的每个像素/值将被重新psented的颜色与ARGB价值$ P $。

every pixel/value in array will be represented as Color with ARGB value.

这篇关于在获取Android的位图图像的像素值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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