Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 1.01 KB

README.md

File metadata and controls

26 lines (18 loc) · 1.01 KB

WebP decoder for Universal Windows Platform

Introduction

This repository contains a Windows Runtime Component that wraps up libwebp and allows to decode static and animated WEBP images.

The code is released under the MIT/X11, so feel free to modify and share your changes with the world.

How to

You can use WebPImage.DecodeFromByteArray method to get a WriteableBitmap directly from a static WEBP.

If you want to decode an animated WEBP (or you need to decode both) you can use instead WebPImage.CreateFromByteArray. This method returns a reference to a WebPImage object instance that exposes an array of WebPFrames via its Frames property.

You can simply loop the collection and get a WriteableBitmap from every frame using its RenderFrame method.

Install

You can install the library via NuGet.

###Install-Package Universal.WebP