Пример #1
0
        public static Color GetColor(Sections section, int group_id, int entry_id, PointID point = PointID.None)
        {
            int Red   = (((int)section) << 2) | ((int)point & 3);
            int Green = group_id;
            int Blue  = entry_id;

            return(Color.FromArgb(255, Red, Green, Blue));
        }
Пример #2
0
 public BezierPoint(Point _coord, PointID id)
 {
     this.Coord = _coord;
     this.Id    = id;
     UpdateRect();
 }
Пример #3
0
 public void AddPoint(Point point, PointID id)
 {
     this.Add(new BezierPoint(point, id));
 }
Пример #4
0
 public void AddPoint(int x, int y, PointID id)
 {
     this.Add(new BezierPoint(new Point(x, y), id));
 }
Пример #5
0
 /// <summary>
 /// Returns a hash code for this instance.
 /// </summary>
 /// <returns>A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.</returns>
 public override int GetHashCode()
 {
     return(Stress.GetHashCode() ^ Strain.GetHashCode() ^ PointID.GetHashCode());
 }