Ejemplo n.º 1
0
        public void Init(float scale) 
        { 
            Scale = scale;
        
            const string musicFont = "alphaTab";
            const string sansFont = "Arial";
            const string serifFont = "Georgia";
        
            MusicFont = new Font(musicFont, 11 * scale);

            EffectFont = new Font(serifFont, 12 * scale, FontStyle.Italic);
            CopyrightFont = new Font(sansFont, 12 * scale, FontStyle.Bold);
        
            TitleFont = new Font(serifFont, 32 * scale);
            SubTitleFont = new Font(serifFont, 20 * scale);
            WordsFont = new Font(serifFont, 15 * scale);
        
            TablatureFont = new Font(sansFont, 13 * scale); 
            GraceFont = new Font(sansFont, 11 * scale); 
       
            StaveLineColor = new Color(165, 165, 165);
            BarSeperatorColor = new Color(34, 34, 17);
       
            BarNumberFont = new Font(sansFont, 11 * scale); 
            BarNumberColor = new Color(200, 0, 0);

            MarkerFont = new Font(serifFont, 14 * scale, FontStyle.Bold);
            TabClefFont = new Font(sansFont, 18 * scale, FontStyle.Bold);
        
            ScoreInfoColor = new Color(0,0,0);
            MainGlyphColor = new Color(0,0,0);
        }
Ejemplo n.º 2
0
 public Track()
 {
     Name = "";
     ShortName = "";
     Tuning = new int[0];
     Bars = new FastList<Bar>();
     Chords = new FastDictionary<string, Chord>();
     PlaybackInfo = new PlaybackInformation();
     Color = new Color(200, 0, 0);
 }
Ejemplo n.º 3
0
 public SvgCanvas()
 {
     _currentPath = new StringBuilder();
     _currentPathIsEmpty = true;
     Color = new Color(255, 255, 255);
     LineWidth = 1;
     Font = new Font("Arial", 10);
     TextAlign = TextAlign.Left;
     TextBaseline = TextBaseline.Default;
 }
Ejemplo n.º 4
0
        public GdiCanvas()
        {
            _width  = 1;
            _height = 1;

            _currentPath  = new GraphicsPath(FillMode.Winding);
            _stringFormat = new StringFormat();
            _stringFormat.LineAlignment = StringAlignment.Near;

            _lineWidth    = 1;
            _currentX     = 0;
            _currentY     = 0;
            _font         = new GdiFont("Arial", 10, GraphicsUnit.Pixel);
            _textAlign    = TextAlign.Left;
            _textBaseline = TextBaseline.Top;

            Color = new Color(255, 255, 255);

            RecreateImage();
        }
Ejemplo n.º 5
0
        public GdiCanvas()
        {
            _width = 1;
            _height = 1;

            _currentPath = new GraphicsPath(FillMode.Winding);
            _stringFormat = new StringFormat();
            _stringFormat.LineAlignment = StringAlignment.Near;

            _lineWidth = 1;
            _currentX = 0;
            _currentY = 0;
            _font = new GdiFont("Arial", 10, GraphicsUnit.Pixel);
            _textAlign = TextAlign.Left;
            _textBaseline = TextBaseline.Top;

            Color = new Color(255, 255, 255);

            RecreateImage();
        }