[MonoTouch] writing a photo (jpeg) to Photo Album
jGoff
info at goffs.net
Wed Mar 7 18:12:16 UTC 2012
Does anyone have a code snippet the shows how to use the ALAssetsLibrary
class for saving a JPEG file. I previously used the SaveToPhotosAlbum
method in UIImage, but since it does not preserve the embedded metadata, I'm
pretty sure I have to switch to WriteImageToSavedPhotosAlbum. The beginning
would be:
using MonoTouch.AssetsLibrary;
...
ALAssetsLibrary library = new ALAssetsLibrary();
// parameters need to be prepared here
library.WriteImageToSavedPhotosAlbum(
--------------------------------------------------------------
But then what? I'm a little confused that it wants me to pass in the
metadata. The image already has embedded metadata. Do I have have to
extract it, so I can pass it back in? Also since it indicates that using
imageData of Type UIImage is obsolete, which is the correct Type?
Assistance doing this seemingly simple task would be greatly appreciated.
Thanks.
--
View this message in context: http://monotouch.2284126.n4.nabble.com/writing-a-photo-jpeg-to-Photo-Album-tp4454061p4454061.html
Sent from the MonoTouch mailing list archive at Nabble.com.
More information about the MonoTouch
mailing list