How I can Read the RGB-Pixel by Pixel values from CGImagea also after how to assign it to UIImage
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
- How to know full paths to DLL's from .csproj f
according this link Bitmap is used to work with images defined by pixel data.
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 1x1 pixels.