[MonoTouch] writing a photo (jpeg) to Photo Album
Jason Awbrey
jason at awbrey.net
Wed Mar 7 19:21:01 UTC 2012
according to the docs, the tags in the Dictionary you pass in will get
merged with any tags already embedded in the image. If there is a conflict
the new tags in the dictionary overwrite the tags already embedded in the
image
On Wed, Mar 7, 2012 at 12:12 PM, jGoff <info at goffs.net> wrote:
> 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.
> _______________________________________________
> 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/20120307/431fb9cc/attachment.html>
More information about the MonoTouch
mailing list