Beispiel #1
0
        public IImageList Clone()
        {
            IImageList imageList = ImageList.Create();

            foreach (IImage image in this)
            {
                imageList.Add(image.Clone());
            }

            return(imageList);
        }
Beispiel #2
0
        public unsafe void Apply(IImageList input, IImageList output)
        {
            int[] indices = Enumerable.Range(0, input.Count)
                            .Interpolate(TargetFrameCount);

            IImageList frames = ImageList.Create();

            foreach (int index in indices)
            {
                frames.Add(input[index]);
            }

            frames.CloneTo(output);
        }
Beispiel #3
0
        public void CloneTo(IImageList output)
        {
            while (output.Count < Count)
            {
                output.Add(Image.Create());
            }

            while (output.Count > Count)
            {
                output.RemoveAt(0);
            }

            for (int i = 0; i < Count; ++i)
            {
                this[i].CloneTo(output[i]);
            }
        }