[MonoTouch] byte array to UIImage

Jeff Stedfast jeff at xamarin.com
Mon Oct 24 10:36:22 EDT 2011


Hi Alphapage,

On Sat, Oct 22, 2011 at 9:38 AM, Alphapage <alphapage at gmail.com> wrote:

> Hello,
>
> I try LoadFromData without success, but according to this post:
> http://forums.macrumors.com/showthread.php?t=558573
> "UIImageJPEGRepresentation() returns the data for a jpeg representation.
> This isn't the raw image data. You'd need to use CoreGraphics functions to
> get to the data."
>
> So, UIImage.AsJPEG() returns all bytes in the file as I understand and not
> only the raw pixels bytes required.
> Am I right ?
>

Correct. It returns the bytes as you'd read them from a jpeg file.

Hope that helps!

Jeff
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/monotouch/attachments/20111024/eb170ae6/attachment.html 


More information about the MonoTouch mailing list