How I can Read the RGB-Pixel by Pixel values from CGImagea also after how to assign it to UIImage
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To read RGB pixel values with MonoTouch you can use the code posted in the answer to the following post (works fine for me):
Retrieving a pixel alpha value for a UIImage (MonoTouch)
You can also find the following post useful:
Transparent PNGs in Monotouch for iOS
And here is a link to a working implementation of mine of a convolution filter, that reads and demultiplies the pixel’s rgb values (on iOS all images with alpha channel are stored in a premultiplied-alpha format):
How to Optimize this Image convolution filter Method in MonoTouch?
Remember that reading pixel values is very slow, even if you use the trick to create a bitmap context of only 1×1 pixels.