[MonoTouch] Building a UIImage from a byte[]
UC Scr1pter
ucscr1pter at gmail.com
Tue Mar 27 19:53:21 UTC 2012
Hi,
I'm trying to build a UIImage from a byte array containing ARGB data. My code is as follows:
private UIImage ImageFromBytes(byte[] ImageBuffer)
{
NSData ImgData = NSData.FromArray(ImgBuffer);
return UIImage.LoadFromData(ImgData);
}
This always returns null for me. Can someone point out where I'm going wrong.
--
Best regards,
UC mailto:ucscr1pter at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/monotouch/attachments/20120327/d20b7523/attachment.html>
More information about the MonoTouch
mailing list