public Add ( System.TimeSpan timeSpan ) : void | ||
timeSpan | System.TimeSpan | |
return | void |
private TimingManager CreateTimingManager(GifDataStream metadata, RepeatBehavior repeatBehavior) { TimingManager timingManager = new TimingManager(repeatBehavior == new RepeatBehavior() ? Animator.GetRepeatBehavior(metadata) : repeatBehavior); foreach (GifFrame frame in (IEnumerable <GifFrame>)metadata.Frames) { timingManager.Add(Animator.GetFrameDelay(frame)); } timingManager.Completed += new EventHandler(this.TimingManagerCompleted); return(timingManager); }
private TimingManager CreateTimingManager(GifDataStream metadata, RepeatBehavior repeatBehavior) { var actualRepeatBehavior = GetActualRepeatBehavior(metadata, repeatBehavior); var manager = new TimingManager(actualRepeatBehavior); foreach (var frame in metadata.Frames) { manager.Add(GetFrameDelay(frame)); } manager.Completed += TimingManagerCompleted; return(manager); }
private TimingManager CreateTimingManager(GifDataStream metadata, RepeatBehavior repeatBehavior) { var actualRepeatBehavior = repeatBehavior == default(RepeatBehavior) ? GetRepeatBehavior(metadata) : repeatBehavior; var manager = new TimingManager(actualRepeatBehavior); foreach (var frame in metadata.Frames) { manager.Add(GetFrameDelay(frame)); } manager.Completed += TimingManagerCompleted; return manager; }