Browse Source

Ensure Image properties are copied across.

Former-commit-id: 78c547a9cfa9fa51e03cff64ddbad742377a63e7
Former-commit-id: a41fc55bbf46bb40920613b8ec6c05d6bd7380dc
Former-commit-id: 79fad1b63998aff21d2a4cccdf9171957fa940e2
af/merge-core
James Jackson-South 10 years ago
parent
commit
c7e148ac3d
  1. 8
      src/ImageProcessor/Image.cs

8
src/ImageProcessor/Image.cs

@ -89,8 +89,9 @@ namespace ImageProcessor
}
}
this.HorizontalResolution = DefaultHorizontalResolution;
this.VerticalResolution = DefaultVerticalResolution;
this.RepeatCount = other.RepeatCount;
this.HorizontalResolution = other.HorizontalResolution;
this.VerticalResolution = other.VerticalResolution;
this.CurrentImageFormat = other.CurrentImageFormat;
}
@ -108,8 +109,9 @@ namespace ImageProcessor
{
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));
}

Loading…
Cancel
Save