Browse Source

Fix frame delay getting copied over

af/merge-core
James Jackson-South 9 years ago
parent
commit
df4676022e
  1. 10
      src/ImageSharp/Image/ImageFrame{TPixel}.cs
  2. 3
      src/ImageSharp/Image/Image{TPixel}.cs

10
src/ImageSharp/Image/ImageFrame{TPixel}.cs

@ -30,6 +30,16 @@ namespace ImageSharp
{
}
/// <summary>
/// Initializes a new instance of the <see cref="ImageFrame{TPixel}"/> class.
/// </summary>
/// <param name="image">The image to create the frame from.</param>
public ImageFrame(ImageFrame<TPixel> image)
: base(image)
{
this.CopyProperties(image);
}
/// <summary>
/// Initializes a new instance of the <see cref="ImageFrame{TPixel}"/> class.
/// </summary>

3
src/ImageSharp/Image/Image{TPixel}.cs

@ -79,7 +79,6 @@ namespace ImageSharp
public Image(ImageBase<TPixel> other)
: base(other)
{
this.MetaData = new ImageMetaData();
}
/// <summary>
@ -107,7 +106,7 @@ namespace ImageSharp
/// <summary>
/// Gets the meta data of the image.
/// </summary>
public ImageMetaData MetaData { get; private set; }
public ImageMetaData MetaData { get; private set; } = new ImageMetaData();
/// <summary>
/// Gets the width of the image in inches. It is calculated as the width of the image

Loading…
Cancel
Save