Browse Source

Ensure Image properties are copied across.

Former-commit-id: 7706883fed3cc6f5b3ce345eefdada7ccb619507
Former-commit-id: e55f9230ce9b27bb80ef64493d0fc8296e78465b
Former-commit-id: 0e3f906270e93e8d58bbca63ddaa6bfb68fb1904
pull/17/head
James Jackson-South 10 years ago
parent
commit
9587f94ecb
  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