We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd85f10 commit 33aa644Copy full SHA for 33aa644
src/ImageSharp/PixelFormats/PixelImplementations/Rgb24.cs
@@ -201,7 +201,18 @@ public void FromLa32(La32 source)
201
202
/// <inheritdoc/>
203
[MethodImpl(InliningOptions.ShortMethod)]
204
- public void FromRgba32(Rgba32 source) => this = source.Rgb;
+ public void FromRgba32(Rgba32 source)
205
+ {
206
+#if NETSTANDARD2_0
207
+
208
+ // See https://github.com/SixLabors/ImageSharp/issues/1275
209
+ this.R = source.R;
210
+ this.G = source.G;
211
+ this.B = source.B;
212
+#else
213
+ this = source.Rgb;
214
+#endif
215
+ }
216
217
/// <inheritdoc />
218
0 commit comments