public IImageList Clone() { IImageList imageList = ImageList.Create(); foreach (IImage image in this) { imageList.Add(image.Clone()); } return(imageList); }
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); }
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]); } }