Changeset 1058 for trunk/sources/HeuristicLab.Visualization/ZoomListener.cs
- Timestamp:
- 12/23/08 15:44:47 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Visualization/ZoomListener.cs
r1055 r1058 53 53 54 54 #endregion 55 56 public static RectangleD ZoomClippingArea(RectangleD clippingArea, double zoomFactor) { 57 double x1, x2, y1, y2, width, height; 58 59 width = clippingArea.Width * zoomFactor; 60 height = clippingArea.Height * zoomFactor; 61 62 x1 = clippingArea.X1 - (width - clippingArea.Width) / 2; 63 y1 = clippingArea.Y1 - (height - clippingArea.Height) / 2; 64 x2 = width + x1; 65 y2 = height + y1; 66 67 return new RectangleD(x1, y1, x2, y2); 68 } 55 69 } 56 70 }
Note: See TracChangeset
for help on using the changeset viewer.