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