Image.fromImageLibrary constructor
Implementation
factory Image.fromImageLibrary(final imglib.Image image,
{final num? heightMm, final num? dpi}) {
var img = image;
if (heightMm != null && dpi != null) {
img = _resizeHeightMax(image, heightMm, dpi);
}
final argbPixels = _getArgbPixels(img);
return Image(argbPixels, img.width, img.height);
}