# saveImage method

bool saveImage(

1. String path, {
2. SaveImageOptions? options,

})

Saves the stored image with the given options.

## Implementation

    bool saveImage(String path, {SaveImageOptions? options}) {
      return using((Arena arena) {
        SaveImageOptions resolvedOptions = options ?? SaveImageOptions();
        Pointer<Utf8> pUUID = uniqueId!.toNativeUtf8(allocator: arena);
        Pointer<Utf8> pPath = path.toNativeUtf8(allocator: arena);

        Pointer<CSaveImageOptions> pConfig = arena<CSaveImageOptions>();
        pConfig.ref.quality = resolvedOptions.quality;
        pConfig.ref.encryptionMode = resolvedOptions.encryptionMode.index;

        return _nativeSaveImage(pUUID, pPath, pConfig);
      });
    }