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