ImageDetail[] SaveImage(Target[] targets) { IList <ImageDetail> imgs = new List <ImageDetail>(); foreach (Target t in targets) { Frame frame = t.BaseFrame; for (int j = 0; j < t.Faces.Length; ++j) { string facePath = FileSystemStorage.PathForFaceImage(frame, j); t.Faces[j].SaveImage(facePath); imgs.Add(ImageDetail.FromPath(facePath)); } } ImageDetail[] details = new ImageDetail[imgs.Count]; imgs.CopyTo(details, 0); return(details); }