encodeIcoFile function

Future<bool> encodeIcoFile(
  1. String path,
  2. Image image, {
  3. bool singleFrame = false,
})

Encode an image to a ICO file at the given path.

Implementation

Future<bool> encodeIcoFile(String path, Image image,
    {bool singleFrame = false}) async {
  if (!supportsFileAccess()) {
    return false;
  }
  final bytes = IcoEncoder().encode(image, singleFrame: singleFrame);
  return writeFile(path, bytes);
}