×

GifRenderer Class

Renders an image source as a GIF image, or a list of image sources as an animated GIF image.

Inheritance Hierarchy

System..::..Object  Nokia.Graphics.Imaging..::..GifRenderer

Namespace: Nokia.Graphics.ImagingAssembly: Nokia.Graphics.Imaging (in Nokia.Graphics.Imaging.dll) Version: 255.255.255.255

Syntax

C#
public sealed class GifRenderer : IClosable, 
	IImageConsumer, __IGifRendererPublicNonVirtuals
Visual Basic
Public NotInheritable Class GifRenderer 
	Implements IClosable, IImageConsumer, __IGifRendererPublicNonVirtuals
Visual C++
public ref class GifRenderer sealed : IClosable, 
	IImageConsumer, __IGifRendererPublicNonVirtuals

Examples

C#

This sample takes a list of image sources and renders them into an animated GIF where each frame is displayed for 100 milliseconds.

public async Task<IBuffer> RenderToGifAsync(List<IImageProvider> imageSources)
{
    using (var renderer = new GifRenderer())
    {
        renderer.Sources = imageSources;
        renderer.Duration = 100;
        var gifBuffer = await renderer.RenderAsync();
        return gifBuffer;
    }
}
Visual Basic


Visual C++



Last updated 19 June 2014

Back to top

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×