Browse Source

internal constructor to public constructor

pull/1929/head
jz5 4 years ago
parent
commit
bd4eb34b48
  1. 2
      src/ImageSharp/Formats/PixelTypeInfo.cs
  2. 2
      src/ImageSharp/Metadata/ImageMetadata.cs

2
src/ImageSharp/Formats/PixelTypeInfo.cs

@ -16,7 +16,7 @@ namespace SixLabors.ImageSharp.Formats
/// </summary> /// </summary>
/// <param name="bitsPerPixel">Color depth, in number of bits per pixel.</param> /// <param name="bitsPerPixel">Color depth, in number of bits per pixel.</param>
/// <param name="alpha">Tthe pixel alpha transparency behavior.</param> /// <param name="alpha">Tthe pixel alpha transparency behavior.</param>
internal PixelTypeInfo(int bitsPerPixel, PixelAlphaRepresentation? alpha = null) public PixelTypeInfo(int bitsPerPixel, PixelAlphaRepresentation? alpha = null)
{ {
this.BitsPerPixel = bitsPerPixel; this.BitsPerPixel = bitsPerPixel;
this.AlphaRepresentation = alpha; this.AlphaRepresentation = alpha;

2
src/ImageSharp/Metadata/ImageMetadata.cs

@ -39,7 +39,7 @@ namespace SixLabors.ImageSharp.Metadata
/// <summary> /// <summary>
/// Initializes a new instance of the <see cref="ImageMetadata"/> class. /// Initializes a new instance of the <see cref="ImageMetadata"/> class.
/// </summary> /// </summary>
internal ImageMetadata() public ImageMetadata()
{ {
this.horizontalResolution = DefaultHorizontalResolution; this.horizontalResolution = DefaultHorizontalResolution;
this.verticalResolution = DefaultVerticalResolution; this.verticalResolution = DefaultVerticalResolution;

Loading…
Cancel
Save