ImagePlane.from constructor

ImagePlane.from(
  1. Map<String, dynamic> map
)

Implementation

factory ImagePlane.from(Map<String, dynamic> map) {
  return ImagePlane(
    bytes: map["bytes"],
    bytesPerRow: map["bytesPerRow"] ?? map["rowStride"],
    bytesPerPixel: map["pixelStride"],
    height: map["height"],
    width: map["width"],
  );
}