[mono-android] Retrieving an image from Assets
tcorrigan5
tom at corrigan.com
Mon Feb 27 21:02:25 UTC 2012
Yes, Assets.Open is working properly. I misread the line of code that was
throwing the error. It was the next line
byte[] data = new byte[input.Length]
that failed. I do find it confusing that Length and Position aren't
supported properties, but, whatever...
However, I am trying to retrieve the png as a byte[], uninterpreted as a
png, i.e., as a raw data. Bitmap doesn't appear to support that. What did
work for me is the code in the following article:
http://http://www.yoda.arachsys.com/csharp/readbinary.html Reading binary
data in C# .
Thanks for your help, tho.
--
View this message in context: http://mono-for-android.1047100.n5.nabble.com/Retrieving-an-image-from-Assets-tp5517857p5520051.html
Sent from the Mono for Android mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/monodroid/attachments/20120227/df54acee/attachment.html>
More information about the Monodroid
mailing list