mirror of
https://github.com/UglyToad/PdfPig.git
synced 2026-03-10 00:23:29 +08:00
Clamp colors in ICCBasedColorSpaceDetails
This commit is contained in:
@@ -1239,6 +1239,12 @@
|
||||
|
||||
// TODO - use ICC profile
|
||||
|
||||
for (int c = 0; c < values.Length; c++)
|
||||
{
|
||||
int i = 2 * c;
|
||||
values[c] = PdfFunction.ClipToRange(values[c], Range[i], Range[i + 1]);
|
||||
}
|
||||
|
||||
return AlternateColorSpace.GetColor(values);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user