Skip to content

Commit 9ea156a

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

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
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;

src/ImageSharp/Metadata/ImageFrameMetadata.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public sealed class ImageFrameMetadata : IDeepCloneable<ImageFrameMetadata>
2020
/// <summary>
2121
/// Initializes a new instance of the <see cref="ImageFrameMetadata"/> class.
2222
/// </summary>
23-
internal ImageFrameMetadata()
23+
public ImageFrameMetadata()
2424
{
2525
}
2626

@@ -55,7 +55,7 @@ internal ImageFrameMetadata(ImageFrameMetadata other)
5555
/// <summary>
5656
/// Gets or sets the XMP profile.
5757
/// </summary>
58-
internal byte[] XmpProfile { get; set; }
58+
public byte[] XmpProfile { get; set; }
5959

6060
/// <summary>
6161
/// Gets or sets the list of ICC profiles.

0 commit comments

Comments
 (0)