예제 #1
0
        internal void AddEnvelope(float x, float y, float width, float height, DashStyle dashStyle, bool temporary = false, int transparency = 255)
        {
            Shape rectangle = new EnvelopeShape(new PointF(x, y + height), new PointF(x, y),
                                                new PointF(x + width, y), new PointF(x + width, y + height), Color.Black, Color.FromArgb(transparency, Color.White), dashStyle, temporary);

            ShapeList[CurrentTab].Add(rectangle);
        }
 /// <summary>
 /// The constructor of the tempo point in terms of the envelope.
 ///
 /// </summary>
 /// <param name="line"></param>
 public EnvelopeTempoPoint(string line)
 {
     string[] timingInformation = line.Split(char.Parse(""));
     time           = decimal.Parse(timingInformation[1]);
     bpm            = decimal.Parse(timingInformation[2]);
     envelopeShape  = (EnvelopeShape)int.Parse(timingInformation[3]);
     tempoSignature = timingInformation[4] != null?GetTempoSignature(timingInformation[4]) : new TempoSignature(4);
 }