Browse Source

Processed review comments, removed ImageFrame.BackgroundColor property.

pull/552/head
woutware 8 years ago
parent
commit
7c70a5efcf
  1. 2
      src/ImageSharp/ImageFrameCollection.cs
  2. 6
      src/ImageSharp/ImageFrame{TPixel}.cs

2
src/ImageSharp/ImageFrameCollection.cs

@ -143,7 +143,7 @@ namespace SixLabors.ImageSharp
/// <inheritdoc/>
public ImageFrame<TPixel> CreateFrame()
{
var frame = new ImageFrame<TPixel>(this.parent.GetConfiguration(), this.RootFrame.Width, this.RootFrame.Height, this.RootFrame.BackgroundColor);
var frame = new ImageFrame<TPixel>(this.parent.GetConfiguration(), this.RootFrame.Width, this.RootFrame.Height, default);
this.frames.Add(frame);
return frame;
}

6
src/ImageSharp/ImageFrame{TPixel}.cs

@ -79,7 +79,6 @@ namespace SixLabors.ImageSharp
this.MemoryManager = configuration.MemoryManager;
this.PixelBuffer = this.MemoryManager.Allocate2D<TPixel>(width, height, false);
this.BackgroundColor = backgroundColor;
this.Clear(configuration.ParallelOptions, backgroundColor);
this.MetaData = metaData;
}
@ -130,11 +129,6 @@ namespace SixLabors.ImageSharp
/// </summary>
public int Height => this.PixelBuffer.Height;
/// <summary>
/// Gets the background color.
/// </summary>
public TPixel BackgroundColor { get; }
/// <summary>
/// Gets the meta data of the frame.
/// </summary>

Loading…
Cancel
Save