Esempio n. 1
0
        public void Apply(IImageList input, IImageList output)
        {
            int[] delayValues = tuner.GetSnapshots <int>(nameof(TargetDelay))
                                .Interpolate(CustomFrames.Count);

            for (int i = 0; i < CustomFrames.Count; ++i)
            {
                int frame = CustomFrames[i];

                output[frame].AnimationDelay = delayValues[i];
            }
        }
Esempio n. 2
0
        public unsafe void Apply(IImageList input, IImageList output)
        {
            Int32Rect area = CustomArea;

            int[] hueValues = tuner.GetSnapshots <int>(nameof(Hue))
                              .Interpolate(CustomFrames.Count);

            float[] lightnessValues = tuner.GetSnapshots <float>(nameof(Lightness))
                                      .Interpolate(CustomFrames.Count);

            float[] saturationValues = tuner.GetSnapshots <float>(nameof(Saturation))
                                       .Interpolate(CustomFrames.Count);

            Apply(input, output, (inputs, outputs, widths, heights) =>
            {
                for (int i = 0; i < CustomFrames.Count; ++i)
                {
                    int frame = CustomFrames[i];

                    Apply(inputs[frame], outputs[frame], widths[frame], heights[frame], area,
                          hueValues[i], saturationValues[i], lightnessValues[i]);
                }
            });
        }
Esempio n. 3
0
        public unsafe void Apply(IImageList input, IImageList output)
        {
            Int32Rect area = CustomArea;

            Color[] colorValues = tuner.GetSnapshots <Color>(nameof(TargetColor))
                                  .Interpolate(CustomFrames.Count);

            Apply(input, output, (inputs, outputs, widths, heights) =>
            {
                for (int i = 0; i < CustomFrames.Count; ++i)
                {
                    int frame = CustomFrames[i];

                    Apply(inputs[frame], outputs[frame], widths[frame], heights[frame], area,
                          colorValues[i]);
                }
            });
        }