fromOverlay static method

InteractiveOverlayImage fromOverlay(
  1. OverlayImage overlay, {
  2. List<OverlayOptions> options = const [],
  3. double? handleSize,
})

Implementation

static InteractiveOverlayImage fromOverlay(
  OverlayImage overlay, {
  List<OverlayOptions> options = const [],
  double? handleSize,
}) {
  return InteractiveOverlayImage.safe(
    key: overlay.key,
    image: overlay.imageProvider,
    topLeft: overlay.bounds.northWest,
    topRight: overlay.bounds.northEast,
    bottomRight: overlay.bounds.southEast,
    bottomLeft: overlay.bounds.southWest,
    alpha: (overlay.opacity * 255).round(),
    options: options,
    handleSize: handleSize,
  );
}