utils/color_frequency library
Functions
-
decodeImage(
Uint8List imageBytes) → Image? - Decodes an image from bytes in a separate isolate.
-
getMostFrequentColors(
ImageProvider< Object> imageProvider, Uint8List imageBytes, {int maxColors = 10}) → Future<List< ColorModel> > - Extracts the most frequent colors from an image.
-
readImage(
ImageProvider< Object> imageProvider) → Future<Uint8List> - Converts an ImageProvider to Uint8List in a separate isolate.
-
readImageData(
ImageProvider< Object> imageProvider) → Future<Uint8List> - Wrapper function for readImage to provide a cleaner API.