Exemple #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ImageFrameMetaData"/> class
        /// by making a copy from other metadata.
        /// </summary>
        /// <param name="other">
        /// The other <see cref="ImageFrameMetaData"/> to create this instance from.
        /// </param>
        internal ImageFrameMetaData(ImageFrameMetaData other)
        {
            DebugGuard.NotNull(other, nameof(other));

            this.FrameDelay     = other.FrameDelay;
            this.DisposalMethod = other.DisposalMethod;
        }
Exemple #2
0
        /// <summary>
        /// Copies the properties from the other <see cref="IImageFrame"/>.
        /// </summary>
        /// <param name="other">
        /// The other <see cref="IImageFrame"/> to copy the properties from.
        /// </param>
        private void CopyProperties(IImageFrame other)
        {
            base.CopyProperties(other);

            this.MetaData = new ImageFrameMetaData(other.MetaData);
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="ImageFrameMetaData"/> class
        /// by making a copy from other metadata.
        /// </summary>
        /// <param name="other">
        /// The other <see cref="ImageFrameMetaData"/> to create this instance from.
        /// </param>
        internal ImageFrameMetaData(ImageFrameMetaData other)
        {
            Debug.Assert(other != null);

            this.FrameDelay = other.FrameDelay;
        }