[MonoTouch] int[] pixels as MonoDroid or wp7

Tomasz Cielecki tomasz at ostebaronen.dk
Tue Oct 18 04:58:44 EDT 2011


This explains how to do it using
Objective-C:http://brandontreb.com/image-manipulation-retrieving-and-updating-pixel-values-for-a-uiimage/You
should be able to port this to MonoTouch. I guess the rawData iswhat
you want.
On Tue, Oct 18, 2011 at 10:45 AM, Alphapage <alphapage at gmail.com> wrote:
> Hello,
>
> I try to get an int array of pixels as I can do in MonoDroid like this:
> int[] pixels=new int[PixelWidth*PixelHeight];
> Android.Graphics.Bitmap Source;
> Source.GetPixels(pixels, 0, PixelWidth, 0, 0, PixelWidth, PixelHeight);
>
> or wp7 like this:
> WriteableBitmap wb;
> int[] pixels=wb.Pixels;
>
> It seems to be very difficult to do the same in 2 lines of code with Cocoa.
>
> Thanks in advance for your help.
>
> --
> View this message in context: http://monotouch.2284126.n4.nabble.com/int-pixels-as-MonoDroid-or-wp7-tp3914625p3914625.html
> Sent from the MonoTouch mailing list archive at Nabble.com.
> _______________________________________________
> MonoTouch mailing list
> MonoTouch at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monotouch
>



-- 
Med Venlig Hilsen / With Best Regards
Tomasz Cielecki
http://ostebaronen.dk


More information about the MonoTouch mailing list