Browse Source

aviod multiple array lookup

af/merge-core
Simon Cropp 7 years ago
parent
commit
e4e8205807
No known key found for this signature in database GPG Key ID: C75A8447313A3D69
  1. 4
      src/ImageSharp/MetaData/Profiles/ICC/DataReader/IccDataReader.TagDataEntry.cs

4
src/ImageSharp/MetaData/Profiles/ICC/DataReader/IccDataReader.TagDataEntry.cs

@ -156,9 +156,7 @@ namespace SixLabors.ImageSharp.Metadata.Profiles.Icc
double[][] values = new double[channelCount][];
for (int i = 0; i < channelCount; i++)
{
values[i] = new double[2];
values[i][0] = this.ReadUFix16();
values[i][1] = this.ReadUFix16();
values[i] = new double[] { this.ReadUFix16(), this.ReadUFix16() };
}
return new IccChromaticityTagDataEntry(values);

Loading…
Cancel
Save