Exemplo n.º 1
0
 public Line()
 {
     Layer = 0;
     StartTime = new STime(0, 0, 0);
     EndTime = new STime(0, 0, 0);
     Style = "Default";
     Margin = new Margin(0, 0, 0);
     LineType = LineTypes.Dialogue;
 }
Exemplo n.º 2
0
        public Line(Int32 layer, STime start, STime end, LineTypes type, String styleName, String name,
			Margin margin, String effect, String text)
        {
            Layer = layer;
            StartTime = start;
            EndTime = end;
            LineType = type;
            Text = text;
            Effect = effect;
            Name = name;
            Margin = margin;
            Style = styleName;
        }
Exemplo n.º 3
0
        public Style(String name, String fontName, Int32 fontSize, Colors fontColors, Border fontBorder, Vector2 scale,
			Typography fontTypography, Align alignment, Double spacing, Double angle, Margin fontMargin,
			Int32 encoding = 1)
        {
            Name = name;
            FontName = fontName;
            FontSize = fontSize;
            FontColors = fontColors;
            FontBorder = fontBorder;
            Scale = scale;
            FontTypography = fontTypography;
            Alignment = alignment;
            Spacing = spacing;
            Angle = angle;
            FontMargin = fontMargin;
            Encoding = encoding;
        }
Exemplo n.º 4
0
 public Style()
 {
     Name = "Default";
     FontName = "Arial";
     FontSize = 20;
     FontColors = new Colors(new SColor(255, 255, 255), new SColor(0, 0, 255), new SColor(0, 0, 0, 0),
         new SColor(0, 0, 0, 0));
     FontTypography = new Typography();
     Scale = new Vector2(100, 100);
     Spacing = 0;
     Angle = 0;
     FontBorder = new Border();
     Alignment = Align.LowerCenter;
     FontMargin = new Margin();
     Encoding = 1;
 }
Exemplo n.º 5
0
 public static Boolean TryParse(String[] parts, out Margin margin)
 {
     int left, right, vertical;
     margin = new Margin(0, 0, 0);
     if (
         !(int.TryParse(parts[0], out left) && int.TryParse(parts[1], out right) &&
         int.TryParse(parts[2], out vertical)))
         return false;
     margin = new Margin(left, right, vertical);
     return true;
 }