Free cookie consent management tool by TermsFeed Policy Generator

Changeset 996


Ignore:
Timestamp:
12/16/08 19:47:11 (16 years ago)
Author:
bspisic
Message:

#424
RectangleShape -> Opacity property added

Location:
trunk/sources/HeuristicLab.Visualization
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Visualization/LineChart.cs

    r987 r996  
    234234        r = Rectangle.Empty;
    235235        rectangleShape = new RectangleShape(e.X, e.Y, e.X, e.Y, 1000, Color.Blue);
     236        rectangleShape.Opacity = 50;
    236237
    237238        root.AddShape(rectangleShape);
  • trunk/sources/HeuristicLab.Visualization/RectangleShape.cs

    r984 r996  
    66    private double z;
    77    private Color color;
    8     private int opacity = 100;
     8    private int opacity = 255;
    99
    1010    public RectangleShape(double x1, double y1, double x2, double y2, double z, Color color) {
     
    1919
    2020    public void Draw(Graphics graphics, Rectangle viewport, RectangleD clippingArea) {
    21       Color brushColor = Color.FromArgb(50, color);
     21      Color brushColor = Color.FromArgb(opacity, color);
    2222
    2323      using (Pen pen = new Pen(color, 1))
     
    3535    }
    3636
     37    public int Opacity {
     38      get { return opacity; }
     39      set { opacity = value; }
     40    }
     41
    3742    public RectangleD Rectangle {
    3843      get { return rectangle; }
Note: See TracChangeset for help on using the changeset viewer.