本文整理汇总了C#中Playlist.Prepare方法的典型用法代码示例。如果您正苦于以下问题:C# Playlist.Prepare方法的具体用法?C# Playlist.Prepare怎么用?C# Playlist.Prepare使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Playlist
的用法示例。
在下文中一共展示了Playlist.Prepare方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Init
public void Init()
{
Animation cBadgeIn = new Animation(_cPreferences.sBadgeIn, 1, false);
if (0 == _cPreferences.stBadgeSize.Width)
_cPreferences.stBadgeSize.Width = (int)cBadgeIn.stArea.nWidth;
if (0 == _cPreferences.stBadgeSize.Height)
_cPreferences.stBadgeSize.Height = (int)cBadgeIn.stArea.nHeight;
_cPlaylistBadge = new Playlist();
_cPlaylistBadge.nLayer = _cPreferences.nBadgeLayer;
_cPlaylistBadge.bStopOnEmpty = true;
_cPlaylistBadge.OnPlaylistIsEmpty += OnPlaylistIsEmpty;
_cPlaylistBadge.stArea = new Area(_cPreferences.stBadgeSize);
_cPlaylistBadge.EffectAdd(cBadgeIn, 0);
_cPlaylistBadge.EffectAdd(new Animation(_cPreferences.sBadgeLoop, 0, true), 0);
_cPlaylistBadge.EffectAdd(new Animation(_cPreferences.sBadgeOut, 1, false), 0);
_cPlaylistBadge.Prepare();
_cShowLoop = new Animation(_cPreferences.sShowLoop, 0, true);
if (0 == _cPreferences.stShowSize.Width)
_cPreferences.stShowSize.Width = (int)_cShowLoop.stArea.nWidth;
if (0 == _cPreferences.stShowSize.Height)
_cPreferences.stShowSize.Height = (int)_cShowLoop.stArea.nHeight;
_cShowOut = new Animation(_cPreferences.sShowOut, 1, false);
_cShowTransition = new Animation(_cPreferences.sShowTransition, 1, true);
_cStandbyLoop = new Animation(_cPreferences.sStandbyLoop, 0, true);
_cStandbyTransition = new Animation(_cPreferences.sStandbyTransition, 1, true);
_cStandbyOut = new Animation(_cPreferences.sStandbyOut, 1, false);
_cMatOut = new Animation(_cPreferences.sOut, 1, false);
_cMatOut.stArea = new Area(_cPreferences.stOutSize);
_cMatOut.nLayer = _cPreferences.nOutLayer;
_cMatOut.Prepare();
Animation cStandbyIn = new Animation(_cPreferences.sStandbyIn, 1, false);
cStandbyIn.Prepare();
_cStandbyLoop.Prepare();
_cPlaylistShow = new Playlist();
_cPlaylistShow.nLayer = _cPreferences.nShowLayer;
_cPlaylistShow.bStopOnEmpty = true;
_cPlaylistShow.OnPlaylistIsEmpty += OnPlaylistIsEmpty;
_cPlaylistShow.stArea = new Area(_cPreferences.stShowSize);
_cPlaylistShow.EffectAdd(cStandbyIn, 0);
_cPlaylistShow.EffectAdd(_cStandbyLoop, 0);
_cPlaylistShow.Prepare();
_cStandbyOut.Prepare();
_cShowOut.Prepare();
_cStandbyTransition.Prepare();
_cShowTransition.Prepare();
}