Browse Source

add comment on ColorDistanceCache member

pull/1841/head
Anton Firszov 4 years ago
parent
commit
61bfb9e60c
  1. 2
      src/ImageSharp/Processing/Processors/Quantization/EuclideanPixelMap{TPixel}.cs

2
src/ImageSharp/Processing/Processors/Quantization/EuclideanPixelMap{TPixel}.cs

@ -22,6 +22,8 @@ namespace SixLabors.ImageSharp.Processing.Processors.Quantization
where TPixel : unmanaged, IPixel<TPixel>
{
private Rgba32[] rgbaPalette;
// Do not make this readonly! Struct value would be always copied on non-readonly method calls.
private ColorDistanceCache cache;
private readonly Configuration configuration;

Loading…
Cancel
Save