Skip to content

Commit 92f47fc

Browse files
committed
Update the PixelTypeInfo constructor to use separate overloads with and without the PixelAlphaRepresentation (not nullable) parameter.
1 parent bd4eb34 commit 92f47fc

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

src/ImageSharp/Formats/PixelTypeInfo.cs

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,17 @@ public class PixelTypeInfo
1515
/// Initializes a new instance of the <see cref="PixelTypeInfo"/> class.
1616
/// </summary>
1717
/// <param name="bitsPerPixel">Color depth, in number of bits per pixel.</param>
18-
/// <param name="alpha">Tthe pixel alpha transparency behavior.</param>
19-
public PixelTypeInfo(int bitsPerPixel, PixelAlphaRepresentation? alpha = null)
18+
public PixelTypeInfo(int bitsPerPixel)
19+
{
20+
this.BitsPerPixel = bitsPerPixel;
21+
}
22+
23+
/// <summary>
24+
/// Initializes a new instance of the <see cref="PixelTypeInfo"/> class.
25+
/// </summary>
26+
/// <param name="bitsPerPixel">Color depth, in number of bits per pixel.</param>
27+
/// <param name="alpha">The pixel alpha transparency behavior.</param>
28+
public PixelTypeInfo(int bitsPerPixel, PixelAlphaRepresentation alpha)
2029
{
2130
this.BitsPerPixel = bitsPerPixel;
2231
this.AlphaRepresentation = alpha;

0 commit comments

Comments
 (0)