Free cookie consent management tool by TermsFeed Policy Generator

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

#424
RectangleShape -> Opacity property added

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.