[MonoTouch] CGImageSource from file
Rolf Bjarne Kvinge
rolf at xamarin.com
Thu Mar 1 23:31:24 UTC 2012
Hi,
Does something like this work?
CGImageSource source = CGImageSource.FromUrl (NSUrl.FromFilename
("image.jpg"));
Rolf
On Thu, Mar 1, 2012 at 6:56 PM, Jason Awbrey <jason at awbrey.net> wrote:
> I need to create a CGImageSource from a file. Seems simple, but is
> driving me nuts
>
> // this works, I get a data object with the correct length
> NSData data = NSDate.FromFile("image.jpg");
>
> // this returns a null object
> CGImageSource source = CGImageSource.FromData(data);
>
>
> What am I doing wrong?
>
> thanks - Jason1
>
> _______________________________________________
> MonoTouch mailing list
> MonoTouch at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monotouch
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/monotouch/attachments/20120302/1f4408e0/attachment.html>
More information about the MonoTouch
mailing list