Hi,
I'm trying to add images to a MigraDoc paragraph in loop, but only the first image is displayed multiple times.
Code:
foreach (byte[] image in images)
{
Paragraph scribble = section.AddParagraph();
scribble.Format.Alignment = ParagraphAlignment.Center;
scribble.Format.SpaceAfter = 15;
ImageSource.ImageSourceImpl = new ImageSharpImageSource();
var imgSource = ImageSource.FromBinary("Scribble", () => image);
var i = scribble.AddImage(imgSource);
i.Height = Unit.FromMillimeter(26.4 * 3);
i.Width = Unit.FromMillimeter(60.8 * 3);
}
Can anyone tell me where I'm going
Code:
wrong.