当前位置: 首页>>代码示例>>C#>>正文


C# Playlist.Prepare方法代码示例

本文整理汇总了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();
			}
开发者ID:ratsil,项目名称:bethe.ingenie,代码行数:52,代码来源:SMSChat.cs


注:本文中的Playlist.Prepare方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。