コード例 #1
0
 private void SetupPictureEffect()
 {
     if (_thePic == null)
     {
         _thePic = new FastPictureEffect();
     }
     //_thePic.Source = PictureSource.File;
     _thePic.TargetNodes = TargetNodes;
     _thePic.CacheElementEnumerator();
     _thePic.StringOrientation = Orientation;
     _thePic.ScaleToGrid       = ScaleToGrid;
     _thePic.ScalePercent      = ScalePercent;
     _thePic.YOffsetCurve      = YOffsetCurve;
     _thePic.XOffsetCurve      = XOffsetCurve;
     _thePic.TotalFrames       = (int)TimeSpan.TotalMilliseconds / 50;
     _thePic.EffectEndTime     = TimeSpan;
     _thePic.Level             = IntensityLevel;
 }
コード例 #2
0
ファイル: LipSync.cs プロジェクト: Aurbo99/vixen
        private void SetupPictureEffect()
        {
            if (_thePic == null)
            {
                _thePic = new FastPictureEffect();
            }
            //_thePic.Source = PictureSource.File;
            _thePic.TargetNodes = TargetNodes;
            _thePic.CacheElementEnumerator();
            _thePic.StringOrientation = Orientation;
            _thePic.ScaleToGrid       = ScaleToGrid;
            _thePic.ScalePercent      = ScalePercent;
            //_thePic.TimeSpan = TimeSpan;

            var intensityCurve = PixelEffectBase.ScaleValueToCurve(IntensityLevel, 100.0, 0.0);

            _thePic.LevelCurve = new Curve(new PointPairList(new[] { 0.0, 100.0 }, new[] { intensityCurve, intensityCurve }));
        }