This repository was archived by the owner on Dec 27, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed
ColorSharp/src/ColorSpaces Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ namespace ColorSpaces
38
38
/**
39
39
* CIE 1931 (2º) XYZ Color Space.
40
40
*/
41
- public class CIEXYZ : AConvertibleColor
41
+ public sealed class CIEXYZ : AConvertibleColor
42
42
{
43
43
#region readonly properties
44
44
@@ -57,7 +57,7 @@ public CIEXYZ() {
57
57
/**
58
58
* This constructor "installs" the conversor methods into the instance
59
59
*/
60
- protected CIEXYZ ( AConvertibleColor dataSource = null ) : base ( dataSource ) {
60
+ private CIEXYZ ( AConvertibleColor dataSource = null ) : base ( dataSource ) {
61
61
Conversors . Add ( typeof ( SRGB ) , ToSRGB ) ;
62
62
Conversors . Add ( typeof ( CIExyY ) , ToxyY ) ;
63
63
}
Original file line number Diff line number Diff line change @@ -191,6 +191,7 @@ public override int GetHashCode ()
191
191
192
192
#endregion
193
193
194
+
194
195
#region internal utilities
195
196
196
197
/**
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ namespace ColorSpaces
38
38
/**
39
39
* HP's & Microsoft's 1996 sRGB Color Space.
40
40
*/
41
- public class SRGB : AConvertibleColor
41
+ public sealed class SRGB : AConvertibleColor
42
42
{
43
43
#region private properties
44
44
@@ -52,7 +52,7 @@ public class SRGB : AConvertibleColor
52
52
/**
53
53
* This constructor "installs" the conversor methods into the instance
54
54
*/
55
- protected SRGB ( AConvertibleColor dataSource = null ) : base ( dataSource ) {
55
+ private SRGB ( AConvertibleColor dataSource = null ) : base ( dataSource ) {
56
56
Conversors . Add ( typeof ( CIEXYZ ) , ToCIEXYZ ) ;
57
57
}
58
58
You can’t perform that action at this time.
0 commit comments