Is this the best/optimal way to save image to the personal documents folder?
*newImage = UIImage.FromFile (filename).ScaleToFit (targetSize, crop);
NSData newImageData = newImage.AsPNG ();
NSError error = null;
if (newImageData.Save(thumbnailFilename,
NSDataWritingOptions.FileProtectionNone, out error))
{
// Saved
}
else
{
// Failed - see error variable
}*
I only ask because it seems a little slow, and I'm trying to build a
thumbnail caching mechanism.
Thanks
--
View this message in context:
http://monotouch.2284126.n4.nabble.com/Saving-images-to-the-personal-documents-folder-tp4026535p4026535.html
Sent from the MonoTouch mailing list archive at Nabble.com.
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch