I believe that you can use: 

  float4 f4 = rsUnpackColor8888(*v_in);

( taken from android dev 
references: http://developer.android.com/guide/topics/renderscript/compute.html 
) 

And then access a specific pixel information using the width or your image, 
x and y of your image. 



On Tuesday, April 17, 2012 9:42:12 PM UTC+7, Booker wrote:
>
> Hi, all. 
>
> I am now developing a renderscript based application and I want to use 
> it to do filter on images. 
>
> I would like to ask if I can have a function to access a specific 
> pixel of an allocation which is a bitmap? 
>
> I can use rsGetElementAt() to read but any set function?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to