|
|
|
@ -26,8 +26,6 @@ namespace SixLabors.ImageSharp.Formats.Tiff.PhotometricInterpretation |
|
|
|
/// <inheritdoc/>
|
|
|
|
public override void Decode(ReadOnlySpan<byte> data, Buffer2D<TPixel> pixels, int left, int top, int width, int height) |
|
|
|
{ |
|
|
|
// Note: due to an issue with netcore 2.1 and default values and unpredictable behavior with those,
|
|
|
|
// we define our own defaults as a workaround. See: https://github.com/dotnet/runtime/issues/55623
|
|
|
|
var color = default(TPixel); |
|
|
|
color.FromScaledVector4(Vector4.Zero); |
|
|
|
const uint maxValue = 0xFFFFFFFF; |
|
|
|
|