Simon Cropp
7 years ago
No known key found for this signature in database
GPG Key ID: C75A8447313A3D69
1 changed files with
3 additions and
4 deletions
-
src/ImageSharp/ImageFrame{TPixel}.cs
|
|
|
@ -4,7 +4,7 @@ |
|
|
|
using System; |
|
|
|
using System.Runtime.CompilerServices; |
|
|
|
using System.Runtime.InteropServices; |
|
|
|
using System.Threading.Tasks; |
|
|
|
|
|
|
|
using SixLabors.ImageSharp.Advanced; |
|
|
|
using SixLabors.ImageSharp.Memory; |
|
|
|
using SixLabors.ImageSharp.Metadata; |
|
|
|
@ -91,7 +91,7 @@ namespace SixLabors.ImageSharp |
|
|
|
Guard.MustBeGreaterThan(height, 0, nameof(height)); |
|
|
|
|
|
|
|
this.PixelBuffer = this.MemoryAllocator.Allocate2D<TPixel>(width, height); |
|
|
|
this.Clear(configuration.GetParallelOptions(), backgroundColor); |
|
|
|
this.Clear(backgroundColor); |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
@ -283,9 +283,8 @@ namespace SixLabors.ImageSharp |
|
|
|
/// <summary>
|
|
|
|
/// Clears the bitmap.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="parallelOptions">The parallel options.</param>
|
|
|
|
/// <param name="value">The value to initialize the bitmap with.</param>
|
|
|
|
internal void Clear(ParallelOptions parallelOptions, TPixel value) |
|
|
|
internal void Clear(TPixel value) |
|
|
|
{ |
|
|
|
Span<TPixel> span = this.GetPixelSpan(); |
|
|
|
|
|
|
|
|