Esempio n. 1
0
        protected override void Initialize(AVSValue args)
        {
            base.Initialize(args);
            var srcInfo  = Source.GetVideoInfo();
            var overInfo = Overlay.GetVideoInfo();

            overlaySettings = new OverlayInfo
            {
                X            = X,
                Y            = Y,
                Angle        = (int)Math.Round(Angle * 100),
                Width        = OverlayWidth == 0 ? overInfo.width : OverlayWidth,
                Height       = OverlayHeight == 0 ? overInfo.height : OverlayHeight,
                Diff         = Diff,
                BaseWidth    = overInfo.width,
                BaseHeight   = overInfo.height,
                SourceWidth  = srcInfo.width,
                SourceHeight = srcInfo.height,
                Warp         = Warp.Parse(WarpPoints)
            };
            overlaySettings.SetCrop(RectangleF.FromLTRB(
                                        (float)CropLeft,
                                        (float)CropTop,
                                        (float)CropRight,
                                        (float)CropBottom));
        }