private Rect ScaleRectByZoomableArea(Rect rect, ZoomableArea zoomableArea)
{
float num = -(zoomableArea.shownArea.x / zoomableArea.shownArea.width) * rect.width;
float num2 = ((zoomableArea.shownArea.y - (1f - zoomableArea.shownArea.height)) / zoomableArea.shownArea.height) * rect.height;
float width = rect.width / zoomableArea.shownArea.width;
return new Rect(rect.x + num, rect.y + num2, width, rect.height / zoomableArea.shownArea.height);
}