MagickImageCollection() from picturebox images / VB.net

Apr 10 at 7:02 AM
Hi,
Do is possible to make an animated gif from a few picturebox images, and then write gif to another picturebox?

I try like this, but is wrong way :(

Using collection As New MagickImageCollection()
        ' Add first image and set the animation delay to 100ms

        collection.Add(PictureBox1.Image)
        collection.Add(PictureBox2.Image)
...
collection.write(PictureBox3.Image)

Dario
Coordinator
Apr 11 at 9:15 PM
PictureBox3.Image expects an Image. You will need to call collection.ToBitmap(MagickFormat.Gif) to get an image.