diff --git a/src/UglyToad.PdfPig/Graphics/Colors/ColorSpaceDetails.cs b/src/UglyToad.PdfPig/Graphics/Colors/ColorSpaceDetails.cs index 6e5dd1aa..a6c05968 100644 --- a/src/UglyToad.PdfPig/Graphics/Colors/ColorSpaceDetails.cs +++ b/src/UglyToad.PdfPig/Graphics/Colors/ColorSpaceDetails.cs @@ -34,7 +34,7 @@ public abstract class ColorSpaceDetails /// /// The number of components for the underlying color space. /// - internal abstract int BaseNumberOfColorComponents { get; } + public abstract int BaseNumberOfColorComponents { get; } /// /// Create a new . @@ -90,7 +90,7 @@ public sealed class DeviceGrayColorSpaceDetails : ColorSpaceDetails public override int NumberOfColorComponents => 1; /// - internal override int BaseNumberOfColorComponents => NumberOfColorComponents; + public override int BaseNumberOfColorComponents => NumberOfColorComponents; private DeviceGrayColorSpaceDetails() : base(ColorSpace.DeviceGray) { } @@ -152,7 +152,7 @@ public sealed class DeviceRgbColorSpaceDetails : ColorSpaceDetails public override int NumberOfColorComponents => 3; /// - internal override int BaseNumberOfColorComponents => NumberOfColorComponents; + public override int BaseNumberOfColorComponents => NumberOfColorComponents; private DeviceRgbColorSpaceDetails() : base(ColorSpace.DeviceRGB) { } @@ -213,7 +213,7 @@ public sealed class DeviceCmykColorSpaceDetails : ColorSpaceDetails public override int NumberOfColorComponents => 4; /// - internal override int BaseNumberOfColorComponents => NumberOfColorComponents; + public override int BaseNumberOfColorComponents => NumberOfColorComponents; private DeviceCmykColorSpaceDetails() : base(ColorSpace.DeviceCMYK) { @@ -289,7 +289,7 @@ internal static ColorSpaceDetails Stencil(ColorSpaceDetails colorSpaceDetails, d /// /// In the case of , gets the ' BaseNumberOfColorComponents. /// - internal override int BaseNumberOfColorComponents => BaseColorSpace.BaseNumberOfColorComponents; + public override int BaseNumberOfColorComponents => BaseColorSpace.BaseNumberOfColorComponents; /// /// The base color space in which the values in the color table are to be interpreted. @@ -475,7 +475,7 @@ public sealed class DeviceNColorSpaceDetails : ColorSpaceDetails public override int NumberOfColorComponents { get; } /// - internal override int BaseNumberOfColorComponents => AlternateColorSpace.NumberOfColorComponents; + public override int BaseNumberOfColorComponents => AlternateColorSpace.NumberOfColorComponents; /// /// Specifies name objects specifying the individual colour components. The length of the array shall @@ -657,7 +657,7 @@ public sealed class SeparationColorSpaceDetails : ColorSpaceDetails public override int NumberOfColorComponents => 1; /// - internal override int BaseNumberOfColorComponents => AlternateColorSpace.NumberOfColorComponents; + public override int BaseNumberOfColorComponents => AlternateColorSpace.NumberOfColorComponents; /// /// Specifies the name of the colorant that this Separation color space is intended to represent. @@ -775,7 +775,7 @@ public sealed class CalGrayColorSpaceDetails : ColorSpaceDetails public override int NumberOfColorComponents => 1; /// - internal override int BaseNumberOfColorComponents => NumberOfColorComponents; + public override int BaseNumberOfColorComponents => NumberOfColorComponents; private readonly CIEBasedColorSpaceTransformer colorSpaceTransformer; @@ -900,7 +900,7 @@ public sealed class CalRGBColorSpaceDetails : ColorSpaceDetails public override int NumberOfColorComponents => 3; /// - internal override int BaseNumberOfColorComponents => NumberOfColorComponents; + public override int BaseNumberOfColorComponents => NumberOfColorComponents; private readonly CIEBasedColorSpaceTransformer colorSpaceTransformer; @@ -1045,7 +1045,7 @@ public sealed class LabColorSpaceDetails : ColorSpaceDetails public override int NumberOfColorComponents => 3; /// - internal override int BaseNumberOfColorComponents => NumberOfColorComponents; + public override int BaseNumberOfColorComponents => NumberOfColorComponents; /// /// An array of three numbers [XW YW ZW] specifying the tristimulus value, in the CIE 1931 XYZ space of the @@ -1196,7 +1196,7 @@ public sealed class ICCBasedColorSpaceDetails : ColorSpaceDetails public override int NumberOfColorComponents { get; } /// - internal override int BaseNumberOfColorComponents => NumberOfColorComponents; + public override int BaseNumberOfColorComponents => NumberOfColorComponents; /// /// An alternate color space that can be used in case the one specified in the stream data is not @@ -1327,7 +1327,7 @@ public sealed class PatternColorSpaceDetails : ColorSpaceDetails /// Valid for Uncoloured Tiling Patterns. Will throw a otherwise. /// /// - internal override int BaseNumberOfColorComponents => UnderlyingColourSpace!.NumberOfColorComponents; + public override int BaseNumberOfColorComponents => UnderlyingColourSpace!.NumberOfColorComponents; /// /// The underlying color space for Uncoloured Tiling Patterns. @@ -1423,7 +1423,7 @@ public sealed class UnsupportedColorSpaceDetails : ColorSpaceDetails /// Cannot be called for , will throw a . /// /// - internal override int BaseNumberOfColorComponents => NumberOfColorComponents; + public override int BaseNumberOfColorComponents => NumberOfColorComponents; private UnsupportedColorSpaceDetails() : base(ColorSpace.DeviceGray) {