Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ImageFrame"/> class.
 /// </summary>
 /// <param name="other">
 /// The other <see cref="ImageBase"/> to create this instance from.
 /// </param>
 /// <exception cref="ArgumentNullException">
 /// Thrown if the given <see cref="ImageFrame"/> is null.
 /// </exception>
 public ImageFrame(ImageFrame other)
     : base(other)
 {
 }
Пример #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Image"/> class.
        /// </summary>
        /// <param name="other">
        /// The other <see cref="ImageFrame"/> to create this instance from.
        /// </param>
        /// <exception cref="ArgumentNullException">
        /// Thrown if the given <see cref="ImageFrame"/> is null.
        /// </exception>
        public Image(ImageFrame other)
            : base(other)
        {
            this.HorizontalResolution = DefaultHorizontalResolution;
            this.VerticalResolution = DefaultVerticalResolution;

            // Most likely a gif
            // TODO: Should this be aproperty on ImageFrame?
            this.CurrentImageFormat = DefaultFormats.Value.First(f => f.GetType() == typeof(GifFormat));
        }