Skip to content

Commit

Permalink
Update ICC example
Browse files Browse the repository at this point in the history
  • Loading branch information
waacton committed Aug 4, 2024
1 parent 6d8db5a commit 4013df2
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -394,8 +394,8 @@ If there is no ICC profile, or if the profile is incompatible, naive conversion
```c#
using Wacton.Unicolour.Icc;

var iccConfig = new IccConfiguration("./Fogra39.icc", Intent.RelativeColorimetric);
var config = new Configuration(iccConfiguration: iccConfig);
var fogra39 = new IccConfiguration("./Fogra39.icc", Intent.RelativeColorimetric);
var config = new Configuration(iccConfiguration: fogra39);

var navyRgb = new Unicolour(config, ColourSpace.Rgb255, 0, 0, 128);
Console.WriteLine(navyRgb.Icc); // 1.0000 0.8977 0.0001 0.2867 CMYK
Expand Down
4 changes: 2 additions & 2 deletions Unicolour.Readme/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,8 @@ void FeatureCvd()

void FeatureIcc()
{
var iccConfig = new IccConfiguration("./Fogra39.icc", Intent.RelativeColorimetric);
var config = new Configuration(iccConfiguration: iccConfig);
var fogra39 = new IccConfiguration("./Fogra39.icc", Intent.RelativeColorimetric);
var config = new Configuration(iccConfiguration: fogra39);

var navyRgb = new Unicolour(config, ColourSpace.Rgb255, 0, 0, 128);
Console.WriteLine(navyRgb.Icc); // 1.0000 0.8977 0.0001 0.2867 CMYK
Expand Down
4 changes: 2 additions & 2 deletions Unicolour.Readme/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -394,8 +394,8 @@ If there is no ICC profile, or if the profile is incompatible, naive conversion
```c#
using Wacton.Unicolour.Icc;

var iccConfig = new IccConfiguration("./Fogra39.icc", Intent.RelativeColorimetric);
var config = new Configuration(iccConfiguration: iccConfig);
var fogra39 = new IccConfiguration("./Fogra39.icc", Intent.RelativeColorimetric);
var config = new Configuration(iccConfiguration: fogra39);

var navyRgb = new Unicolour(config, ColourSpace.Rgb255, 0, 0, 128);
Console.WriteLine(navyRgb.Icc); // 1.0000 0.8977 0.0001 0.2867 CMYK
Expand Down
4 changes: 2 additions & 2 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -288,8 +288,8 @@ If there is no ICC profile, or if the profile is incompatible, naive conversion
```c#
using Wacton.Unicolour.Icc;
var iccConfig = new IccConfiguration("./Fogra39.icc", Intent.RelativeColorimetric);
var config = new Configuration(iccConfiguration: iccConfig);
var fogra39 = new IccConfiguration("./Fogra39.icc", Intent.RelativeColorimetric);
var config = new Configuration(iccConfiguration: fogra39);
var navyRgb = new Unicolour(config, ColourSpace.Rgb255, 0, 0, 128);
Console.WriteLine(navyRgb.Icc); // 1.0000 0.8977 0.0001 0.2867 CMYK
Expand Down
4 changes: 2 additions & 2 deletions docs/README_us.md
Original file line number Diff line number Diff line change
Expand Up @@ -288,8 +288,8 @@ If there is no ICC profile, or if the profile is incompatible, naive conversion
```c#
using Wacton.Unicolour.Icc;
var iccConfig = new IccConfiguration("./Fogra39.icc", Intent.RelativeColorimetric);
var config = new Configuration(iccConfiguration: iccConfig);
var fogra39 = new IccConfiguration("./Fogra39.icc", Intent.RelativeColorimetric);
var config = new Configuration(iccConfiguration: fogra39);
var navyRgb = new Unicolour(config, ColourSpace.Rgb255, 0, 0, 128);
Console.WriteLine(navyRgb.Icc); // 1.0000 0.8977 0.0001 0.2867 CMYK
Expand Down

0 comments on commit 4013df2

Please sign in to comment.