public override void SerializeToContext(AvsContext context) { base.id = context.Id; Payload.SerializeToContext(context); var script = string.Format(@"{0} = {1}.Subtitle(""{2}"", x={3}, y={4}, first_frame={5}, last_frame={6}, size={7}, text_color=color_{8}, halo_color=color_{9})", Id, Payload.Id, Content, X, Y, (int)(Start * 25), (int)(End * 25), (int)double.Parse(FontSize), Foreground, Stroke); context.AddData(script); }
public override void SerializeToContext(AvsContext context) { id = context.Id; First.SerializeToContext(context); Second.SerializeToContext(context); var script = string.Format(Format, Id, First.Id, Second.Id); context.AddData(script); }
public override void SerializeToContext(AvsContext context) { id = context.Id; Payload.SerializeToContext(context); var video = Payload.Id; var script = string.Format(Format, Id, video, Duration); context.AddData(script); }
public override void SerializeToContext(AvsContext context) { id = context.Id; FadeFrom.SerializeToContext(context); FadeTo.SerializeToContext(context); var from = FadeFrom.Id; var to = FadeTo.Id; var script = string.Format(Format, Id, to, from, Duration); context.AddData(script); }