iOSImage.WriteToFile

From Xojo Documentation

Method

iOSImage.WriteToFile(file As Xojo.IO.FolderItem, type As Text)

Supported on Mobile(iOS).

Writes the image to a file. Use type to specify the uniform type identifier for the data. For example, use "public.png" for PNG data.

Notes

Common types include "public.jpeg", "public.tiff" and "public.png".

Apple provides a list of uniform type identifiers.

Sample Code

Save an image as a PNG file:

Dim saveFile As Xojo.IO.FolderItem
saveFile = Xojo.IO.SpecialFolder.Documents.Child("MyImage.png")
myImage.WriteToFile(saveFile, "public.png")