Esempio n. 1
0
        ///<summary>
        ///
        ///</summary>
        ///<returns></returns>
        protected override Media CopyProtected()
        {
            ExternalImageMedia copy = (ExternalImageMedia)base.CopyProtected();

            copy.Src    = Src;
            copy.Height = this.Height;
            copy.Width  = this.Width;
            return(copy);
        }
Esempio n. 2
0
        /// <summary>
        /// Exports the external image media to a destination <see cref="Presentation"/>
        /// - part of a construct allowing the <see cref="Export"/> method to return <see cref="ExternalImageMedia"/>
        /// </summary>
        /// <param name="destPres">The destination presentation</param>
        /// <returns>The exported external video media</returns>
        protected override Media ExportProtected(Presentation destPres)
        {
            ExternalImageMedia exported = (ExternalImageMedia)base.ExportProtected(destPres);

            exported.Src    = this.Src;
            exported.Height = this.Height;
            exported.Width  = this.Width;
            return(exported);
        }
Esempio n. 3
0
        /// <summary>
        /// Fires the <see cref="SizeChanged"/> event
        /// </summary>
        /// <param name="source">The source, that is the <see cref="ExternalImageMedia"/> whoose size has changed</param>
        /// <param name="newHeight">The new height of the <see cref="ExternalImageMedia"/></param>
        /// <param name="newWidth">The new width of the <see cref="ExternalImageMedia"/></param>
        /// <param name="prevHeight">The height of the <see cref="ExternalImageMedia"/> prior to the change</param>
        /// <param name="prevWidth">The width of the <see cref="ExternalImageMedia"/> prior to the change</param>
        protected void NotifySizeChanged(ExternalImageMedia source, int newHeight, int newWidth, int prevHeight,
                                         int prevWidth)
        {
            EventHandler <events.media.SizeChangedEventArgs> d = SizeChanged;

            if (d != null)
            {
                d(this,
                  new urakawa.events.media.SizeChangedEventArgs(source, newHeight, newWidth, prevHeight, prevWidth));
            }
        }
Esempio n. 4
0
        public override bool ValueEquals(WithPresentation other)
        {
            if (!base.ValueEquals(other))
            {
                return(false);
            }

            ExternalImageMedia otherz = other as ExternalImageMedia;

            if (otherz == null)
            {
                return(false);
            }

            if (Src != otherz.Src)
            {
                return(false);
            }

            return(true);
        }