renderLocation property

Rect renderLocation

Returns bounding box rectangle corresponding to the displayed image on screen

This is the actual location where rectangle is rendered on the screen

Implementation

Rect get renderLocation {
  final double scaleX = ScreenParams.screenPreviewSize.width / 300;
  final double scaleY = ScreenParams.screenPreviewSize.height / 300;
  return Rect.fromLTWH(
    location.left * scaleX,
    location.top * scaleY,
    location.width * scaleX,
    location.height * scaleY,
  );
}