encodeBmpFile function

Future<bool> encodeBmpFile(
  1. String path,
  2. Image image
)

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);
}