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/> /// <inheritdoc/>
public ImageFrame<TPixel> CreateFrame() 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); this.frames.Add(frame);
return frame; return frame;
} }

6
src/ImageSharp/ImageFrame{TPixel}.cs

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

Loading…
Cancel
Save