encodeCurFile function
Encode an image
to a CUR file at the given path
.
Implementation
Future<bool> encodeCurFile(String path, Image image,
{bool singleFrame = false}) async {
if (!supportsFileAccess()) {
return false;
}
final bytes = CurEncoder().encode(image, singleFrame: singleFrame);
return writeFile(path, bytes);
}