Changeset 996
- Timestamp:
- 12/16/08 19:47:11 (16 years ago)
- Location:
- trunk/sources/HeuristicLab.Visualization
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Visualization/LineChart.cs
r987 r996 234 234 r = Rectangle.Empty; 235 235 rectangleShape = new RectangleShape(e.X, e.Y, e.X, e.Y, 1000, Color.Blue); 236 rectangleShape.Opacity = 50; 236 237 237 238 root.AddShape(rectangleShape); -
trunk/sources/HeuristicLab.Visualization/RectangleShape.cs
r984 r996 6 6 private double z; 7 7 private Color color; 8 private int opacity = 100;8 private int opacity = 255; 9 9 10 10 public RectangleShape(double x1, double y1, double x2, double y2, double z, Color color) { … … 19 19 20 20 public void Draw(Graphics graphics, Rectangle viewport, RectangleD clippingArea) { 21 Color brushColor = Color.FromArgb( 50, color);21 Color brushColor = Color.FromArgb(opacity, color); 22 22 23 23 using (Pen pen = new Pen(color, 1)) … … 35 35 } 36 36 37 public int Opacity { 38 get { return opacity; } 39 set { opacity = value; } 40 } 41 37 42 public RectangleD Rectangle { 38 43 get { return rectangle; }
Note: See TracChangeset
for help on using the changeset viewer.