Rank: Advanced Member
Groups: Guest
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.
|
|
|
|
Rank: Advanced Member
Groups: Guest
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.htmHope this helps. Edited by moderator Wednesday, May 15, 2013 8:46:45 PM(UTC)
| Reason: Not specified |
Best regards, Vitaly Kustov Aurigma Technical Support
|
|
|
|
Rank: Advanced Member
Groups: Guest
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
|
|
|
|
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.