From 9587f94ecbf519ac073587464faef343c2891069 Mon Sep 17 00:00:00 2001 From: James Jackson-South Date: Wed, 6 Jan 2016 11:56:42 +1100 Subject: [PATCH] Ensure Image properties are copied across. Former-commit-id: 7706883fed3cc6f5b3ce345eefdada7ccb619507 Former-commit-id: e55f9230ce9b27bb80ef64493d0fc8296e78465b Former-commit-id: 0e3f906270e93e8d58bbca63ddaa6bfb68fb1904 --- src/ImageProcessor/Image.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/ImageProcessor/Image.cs b/src/ImageProcessor/Image.cs index 75483d753..12a55b979 100644 --- a/src/ImageProcessor/Image.cs +++ b/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)); }