Beispiel #1
0
        /// <summary>
        /// Chèn Flash như video
        /// </summary>
        /// <param name=""></param>
        /// <param name="_shape"></param>
        /// <param name="_flashTag"></param>
        private void VideoAsFlash(PageLayer _page, pp.Shape _shape, ReferenceRelationship _rls, EAnimation _animation, string _idShape)
        {
            EFlashControl eFlash = new EFlashControl();

            eFlash.Name       = "Flash";
            eFlash.ID         = _idShape;
            eFlash.Angle      = _shape.Rotation;
            eFlash.Height     = _shape.Height * Utils.tlh;
            eFlash.Left       = _shape.Left * Utils.tlw;
            eFlash.Width      = _shape.Width * Utils.tlw;
            eFlash.Top        = _shape.Top * Utils.tlh;
            eFlash.ZOder      = _shape.ZOrderPosition;
            eFlash.Animations = _animation;
            //Lấy file flash trong gói sử dụng openxml
            eFlash.Source      = new Core.Model.Media.Flash();
            eFlash.Source.Path = _rls.Uri.AbsolutePath;
            _page.Children.Add(eFlash);
        }
Beispiel #2
0
        private void ShapeIsFlash(PageLayer _page, pp.Shape _shape, EAnimation _animation, string _idShape)
        {
            EFlashControl eFlash = new EFlashControl();

            eFlash.Name       = "Flash";
            eFlash.ID         = _idShape;
            eFlash.Angle      = _shape.Rotation;
            eFlash.Height     = _shape.Height * Utils.tlh;
            eFlash.Left       = _shape.Left * Utils.tlw;
            eFlash.Width      = _shape.Width * Utils.tlw;
            eFlash.Top        = _shape.Top * Utils.tlh;
            eFlash.ZOder      = _shape.ZOrderPosition;
            eFlash.Animations = _animation;
            //Lấy file flash trong gói sử dụng openxml
            string pathFlash = _shape.OLEFormat.Object.Movie;

            eFlash.Source      = new Core.Model.Media.Flash();
            eFlash.Source.Path = pathFlash;
            _page.Children.Add(eFlash);
        }