Language
From Local Path
PhotoEditor SDK supports loading photos from the local file system such as the documents or a temporary directory, as well as the application resources.
Open the editor#
To load the photo into the editor simply specify it as the image
parameter inside the asynchronous PESDK.openEditor
function. In this example, we load a photo from the local path into the editor.
Handle events#
Once the editor finishes, a PhotoEditorResult
is returned which contains the edited image at PhotoEditorResult.image
. If no result is returned, the user has canceled the editing process by clicking the cancel button inside the editor.