C# Class SubLib.Core.Domain.Frames

Represents the frames of a subtitle.
Frames and Times always exist for any Subtitle. This class is automatically constructed when constructing a Subtitle.
Afficher le fichier Open project: GNOME/gnome-subtitles Class Usage Examples

Private Properties

Свойство Type Description
Frames SubLib.Core.Timing
Frames SubLib.Core.Timing
Scale void
SetFieldsForDeepClone void

Méthodes publiques

Méthode Description
Clone ( Subtitle subtitleClone ) : Frames
Shift ( int frames ) : void

Shifts the subtitle with a specified amount of frames.

ToString ( ) : string

Private Methods

Méthode Description
Frames ( Subtitle subtitle ) : SubLib.Core.Timing
Frames ( Subtitle subtitle, int start, int end ) : SubLib.Core.Timing
Scale ( double factor, int baseFrame ) : void
SetFieldsForDeepClone ( Subtitle subtitle ) : void

Method Details

Clone() public méthode

public Clone ( Subtitle subtitleClone ) : Frames
subtitleClone Subtitle
Résultat Frames

Shift() public méthode

Shifts the subtitle with a specified amount of frames.
public Shift ( int frames ) : void
frames int The number of frames to shift the subtitle with, which can be positive or negative.
Résultat void

ToString() public méthode

public ToString ( ) : string
Résultat string