Skip to content

Commit 37fc697

Browse files
Merge pull request #1161 from SixLabors/js/visibility
Clean Up Namespaces and Visibility
2 parents 7c152bb + ac7dee0 commit 37fc697

File tree

62 files changed

+121
-151
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+121
-151
lines changed

src/ImageSharp/ColorSpaces/Companding/LCompanding.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) Six Labors and contributors.
1+
// Copyright (c) Six Labors and contributors.
22
// Licensed under the Apache License, Version 2.0.
33

44
using System;
@@ -35,4 +35,4 @@ public static float Expand(float channel)
3535
public static float Compress(float channel)
3636
=> channel <= CieConstants.Epsilon ? (channel * CieConstants.Kappa) / 100F : (1.16F * MathF.Pow(channel, 0.3333333F)) - 0.16F;
3737
}
38-
}
38+
}

src/ImageSharp/ColorSpaces/Conversion/ColorSpaceConverter.Adapt.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
// Copyright (c) Six Labors and contributors.
1+
// Copyright (c) Six Labors and contributors.
22
// Licensed under the Apache License, Version 2.0.
33

4-
using SixLabors.ImageSharp.ColorSpaces.Conversion.Implementation;
5-
64
namespace SixLabors.ImageSharp.ColorSpaces.Conversion
75
{
86
/// <content>
@@ -157,4 +155,4 @@ public Rgb Adapt(in Rgb color)
157155
return this.ToRgb(linearOutput);
158156
}
159157
}
160-
}
158+
}

src/ImageSharp/ColorSpaces/Conversion/ColorSpaceConverter.CieLab.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
// Copyright (c) Six Labors and contributors.
1+
// Copyright (c) Six Labors and contributors.
22
// Licensed under the Apache License, Version 2.0.
33

44
using System;
55
using System.Runtime.CompilerServices;
66
using System.Runtime.InteropServices;
7-
using SixLabors.ImageSharp.ColorSpaces.Conversion.Implementation;
87

98
namespace SixLabors.ImageSharp.ColorSpaces.Conversion
109
{

src/ImageSharp/ColorSpaces/Conversion/ColorSpaceConverter.CieLch.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
// Copyright (c) Six Labors and contributors.
1+
// Copyright (c) Six Labors and contributors.
22
// Licensed under the Apache License, Version 2.0.
33

44
using System;
55
using System.Runtime.CompilerServices;
66
using System.Runtime.InteropServices;
77

8-
using SixLabors.ImageSharp.ColorSpaces.Conversion.Implementation;
9-
108
namespace SixLabors.ImageSharp.ColorSpaces.Conversion
119
{
1210
/// <content>
@@ -447,4 +445,4 @@ public void Convert(ReadOnlySpan<YCbCr> source, Span<CieLch> destination)
447445
}
448446
}
449447
}
450-
}
448+
}

src/ImageSharp/ColorSpaces/Conversion/ColorSpaceConverter.CieLchuv.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
// Copyright (c) Six Labors and contributors.
1+
// Copyright (c) Six Labors and contributors.
22
// Licensed under the Apache License, Version 2.0.
33

44
using System;
55
using System.Runtime.CompilerServices;
66
using System.Runtime.InteropServices;
77

8-
using SixLabors.ImageSharp.ColorSpaces.Conversion.Implementation;
9-
108
namespace SixLabors.ImageSharp.ColorSpaces.Conversion
119
{
1210
/// <content>
@@ -447,4 +445,4 @@ public void Convert(ReadOnlySpan<YCbCr> source, Span<CieLchuv> destination)
447445
}
448446
}
449447
}
450-
}
448+
}

src/ImageSharp/ColorSpaces/Conversion/ColorSpaceConverter.CieLuv.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
// Copyright (c) Six Labors and contributors.
1+
// Copyright (c) Six Labors and contributors.
22
// Licensed under the Apache License, Version 2.0.
33

44
using System;
55
using System.Runtime.CompilerServices;
66
using System.Runtime.InteropServices;
77

8-
using SixLabors.ImageSharp.ColorSpaces.Conversion.Implementation;
9-
108
namespace SixLabors.ImageSharp.ColorSpaces.Conversion
119
{
1210
/// <content>

src/ImageSharp/ColorSpaces/Conversion/ColorSpaceConverter.CieXyy.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
// Copyright (c) Six Labors and contributors.
1+
// Copyright (c) Six Labors and contributors.
22
// Licensed under the Apache License, Version 2.0.
33

44
using System;
55
using System.Runtime.CompilerServices;
66
using System.Runtime.InteropServices;
77

8-
using SixLabors.ImageSharp.ColorSpaces.Conversion.Implementation;
9-
108
namespace SixLabors.ImageSharp.ColorSpaces.Conversion
119
{
1210
/// <content>
@@ -440,4 +438,4 @@ public void Convert(ReadOnlySpan<YCbCr> source, Span<CieXyy> destination)
440438
}
441439
}
442440
}
443-
}
441+
}

src/ImageSharp/ColorSpaces/Conversion/ColorSpaceConverter.CieXyz.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
// Copyright (c) Six Labors and contributors.
1+
// Copyright (c) Six Labors and contributors.
22
// Licensed under the Apache License, Version 2.0.
33

44
using System;
55
using System.Runtime.CompilerServices;
66
using System.Runtime.InteropServices;
77

8-
using SixLabors.ImageSharp.ColorSpaces.Conversion.Implementation;
9-
108
namespace SixLabors.ImageSharp.ColorSpaces.Conversion
119
{
1210
/// <content>
@@ -475,4 +473,4 @@ private LinearRgbToCieXyzConverter GetLinearRgbToCieXyzConverter(RgbWorkingSpace
475473
return this.linearRgbToCieXyzConverter = new LinearRgbToCieXyzConverter(workingSpace);
476474
}
477475
}
478-
}
476+
}

src/ImageSharp/ColorSpaces/Conversion/ColorSpaceConverter.Cmyk.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
// Copyright (c) Six Labors and contributors.
1+
// Copyright (c) Six Labors and contributors.
22
// Licensed under the Apache License, Version 2.0.
33

44
using System;
55
using System.Runtime.CompilerServices;
66
using System.Runtime.InteropServices;
77

8-
using SixLabors.ImageSharp.ColorSpaces.Conversion.Implementation;
9-
108
namespace SixLabors.ImageSharp.ColorSpaces.Conversion
119
{
1210
/// <content>
@@ -440,4 +438,4 @@ public void Convert(ReadOnlySpan<YCbCr> source, Span<Cmyk> destination)
440438
}
441439
}
442440
}
443-
}
441+
}

src/ImageSharp/ColorSpaces/Conversion/ColorSpaceConverter.Hsl.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
// Copyright (c) Six Labors and contributors.
1+
// Copyright (c) Six Labors and contributors.
22
// Licensed under the Apache License, Version 2.0.
33

44
using System;
55
using System.Runtime.CompilerServices;
66
using System.Runtime.InteropServices;
77

8-
using SixLabors.ImageSharp.ColorSpaces.Conversion.Implementation;
9-
108
namespace SixLabors.ImageSharp.ColorSpaces.Conversion
119
{
1210
/// <content>
@@ -440,4 +438,4 @@ public void Convert(ReadOnlySpan<YCbCr> source, Span<Hsl> destination)
440438
}
441439
}
442440
}
443-
}
441+
}

0 commit comments

Comments
 (0)