From 1f577b25fdd08a74bc604c060b874a0f908720f2 Mon Sep 17 00:00:00 2001
From: woutware <35376607+woutware@users.noreply.github.com>
Date: Thu, 19 Apr 2018 08:32:30 +0200
Subject: [PATCH] Processed review comment for Alpha8.ToArgb32()
---
src/ImageSharp/PixelFormats/Alpha8.cs | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/ImageSharp/PixelFormats/Alpha8.cs b/src/ImageSharp/PixelFormats/Alpha8.cs
index ddaea541d..83aaab07a 100644
--- a/src/ImageSharp/PixelFormats/Alpha8.cs
+++ b/src/ImageSharp/PixelFormats/Alpha8.cs
@@ -120,7 +120,10 @@ namespace SixLabors.ImageSharp.PixelFormats
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void ToArgb32(ref Argb32 dest) {
- dest.PackedValue = (uint)this.PackedValue << 24;
+ dest.R = 0;
+ dest.G = 0;
+ dest.B = 0;
+ dest.A = this.PackedValue;
}
///