From 687ca3f80f30606fca6c0cb3831d997d2203e125 Mon Sep 17 00:00:00 2001 From: woutware <35376607+woutware@users.noreply.github.com> Date: Tue, 1 May 2018 10:36:20 +0200 Subject: [PATCH] Processed review comments, removed ImageFrame.BackgroundColor property. --- src/ImageSharp/ImageFrameCollection.cs | 2 +- src/ImageSharp/ImageFrame{TPixel}.cs | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/src/ImageSharp/ImageFrameCollection.cs b/src/ImageSharp/ImageFrameCollection.cs index 1d4735fd8e..eb118979c8 100644 --- a/src/ImageSharp/ImageFrameCollection.cs +++ b/src/ImageSharp/ImageFrameCollection.cs @@ -143,7 +143,7 @@ namespace SixLabors.ImageSharp /// public ImageFrame CreateFrame() { - var frame = new ImageFrame(this.parent.GetConfiguration(), this.RootFrame.Width, this.RootFrame.Height, this.RootFrame.BackgroundColor); + var frame = new ImageFrame(this.parent.GetConfiguration(), this.RootFrame.Width, this.RootFrame.Height, default); this.frames.Add(frame); return frame; } diff --git a/src/ImageSharp/ImageFrame{TPixel}.cs b/src/ImageSharp/ImageFrame{TPixel}.cs index 1c26bb5582..c3955c1321 100644 --- a/src/ImageSharp/ImageFrame{TPixel}.cs +++ b/src/ImageSharp/ImageFrame{TPixel}.cs @@ -79,7 +79,6 @@ namespace SixLabors.ImageSharp this.MemoryManager = configuration.MemoryManager; this.PixelBuffer = this.MemoryManager.Allocate2D(width, height, false); - this.BackgroundColor = backgroundColor; this.Clear(configuration.ParallelOptions, backgroundColor); this.MetaData = metaData; } @@ -130,11 +129,6 @@ namespace SixLabors.ImageSharp /// public int Height => this.PixelBuffer.Height; - /// - /// Gets the background color. - /// - public TPixel BackgroundColor { get; } - /// /// Gets the meta data of the frame. ///