fromRgba static method
Implementation
static Future<DetectableImage> fromRgba(List<int> bytes, int width, int height) async {
// decode pixels
List<int> pixels = ImageHelper.toPixelsFromRgba(bytes);
// get luminance
var source = zxing.RGBLuminanceSource(width, height, pixels);
// get bitmap
zxing.BinaryBitmap bitmap = zxing.BinaryBitmap(HybridBinarizer(source));
return DetectableImage(bitmap);
}