no, that fails also I can find almost no references online to working with CGImageSource under MT, so I'm curious if this is a bug that has never been uncovered?
Can someone else try and see if they can replicate (or disprove) it? On Thu, Mar 1, 2012 at 5:31 PM, Rolf Bjarne Kvinge <[email protected]> wrote: > 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 <[email protected]> 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 >> [email protected] >> http://lists.ximian.com/mailman/listinfo/monotouch >> >> >
_______________________________________________ MonoTouch mailing list [email protected] http://lists.ximian.com/mailman/listinfo/monotouch
