Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
mzhao  
#1 Posted : Wednesday, May 15, 2013 7:29:13 AM(UTC)
mzhao

Rank: Advanced Member

Groups: Member
Joined: 9/10/2010(UTC)
Posts: 57

Thanks: 1 times


How to get animated gif animated, using ImageVObject such as those Smiley on the left?

Thanks.
vitaly  
#2 Posted : Wednesday, May 15, 2013 8:10:25 PM(UTC)
vitaly

Rank: Advanced Member

Groups:
Joined: 12/19/2012(UTC)
Posts: 164

Was thanked: 8 time(s) in 8 post(s)
mzhao,

You can use GifWriter Class. The following code creates an animated GIF file from several JPEG images:
Code:

string dir = @"C:\Documents and Settings\All Users\Documents\My Pictures\Sample Pictures\\";
string[] images = { "Chrysanthemum.jpg", "Desert.jpg", "Jellyfish.jpg", "Tulips.jpg" };

using (var writer = new Aurigma.GraphicsMill.Codecs.GifWriter(@"Images\Slideshow.gif"))
using (var cc = new Aurigma.GraphicsMill.Transforms.ColorConverter(Aurigma.GraphicsMill.PixelFormat.Format8bppIndexed))
{
    writer.FrameOptions.Delay = 100;

    foreach (string image in images)
    {
        using (var reader = new Aurigma.GraphicsMill.Codecs.JpegReader(dir + image))
        {
            Aurigma.GraphicsMill.Pipeline.Run(reader + cc + writer);
        }
    }
}


You can read about it here: http://www.graphicsmill....ill_Codecs_GifWriter.htm

Hope this helps.

Edited by moderator Wednesday, May 15, 2013 8:46:45 PM(UTC)  | Reason: Not specified

Best regards,
Vitaly Kustov
Aurigma Technical Support
Andrew  
#3 Posted : Wednesday, May 15, 2013 8:48:30 PM(UTC)
Andrew

Rank: Advanced Member

Groups: Member, Administration
Joined: 8/2/2003(UTC)
Posts: 876

Thanks: 2 times
Was thanked: 27 time(s) in 27 post(s)
Perhaps the question is not how to create an animated GIF, but how to display animated GIF in the CanvasViewer. Is it correct?

If so, could you please clarify why you need it. The idea of the CanvasViewer is that you edit an image consisting of several items (images, texts, etc) and then merge it to one hi-res print-ready file. If you need animated elements, it means that you are using CanvasViewer for some other purposes. If so, we would like to understand your use case.

Edited by user Wednesday, May 15, 2013 8:52:27 PM(UTC)  | Reason: Not specified

Users browsing this topic
Similar Topics
Looping Animated Gifs (Discussions – Graphics Mill)
by lauren@photoboothsupplyco.com 1/16/2018 12:36:17 PM(UTC)
Optimizing Animated Gifs (Discussions – Graphics Mill)
by Nifty 5/5/2017 2:24:00 PM(UTC)
Can't resize an animated GIF when using streams instead of directory paths (Discussions – Graphics Mill)
by bma 1/5/2017 9:26:40 AM(UTC)
SMPL: Animated GIF Demo (Samples – Graphics Mill)
by Alex Kon 4/18/2008 1:05:46 PM(UTC)
Need help with animated Gifs (Discussions – Graphics Mill)
by Defconfyv 10/17/2006 10:17:43 PM(UTC)
Resizing animated gifs... (Discussions – Graphics Mill)
by chris_hh 2/6/2006 9:39:59 PM(UTC)
How to work with animated GIF files with Graphics Mill (Other Products)
by Andrew 11/26/2003 11:43:00 PM(UTC)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.