GIFImage.WinUI
1.0.0.2
dotnet add package GIFImage.WinUI --version 1.0.0.2
NuGet\Install-Package GIFImage.WinUI -Version 1.0.0.2
<PackageReference Include="GIFImage.WinUI" Version="1.0.0.2" />
<PackageVersion Include="GIFImage.WinUI" Version="1.0.0.2" />
<PackageReference Include="GIFImage.WinUI" />
paket add GIFImage.WinUI --version 1.0.0.2
#r "nuget: GIFImage.WinUI, 1.0.0.2"
#:package GIFImage.WinUI@1.0.0.2
#addin nuget:?package=GIFImage.WinUI&version=1.0.0.2
#tool nuget:?package=GIFImage.WinUI&version=1.0.0.2
GIFImage.WinUI
Using asynchronous decoding mode, decode one frame, cache one frame, play one frame until decoding is complete.
How to Use?
xmlns:gif="using:GIFImage.WinUI.Controls"
<gif:GifImage Height="300" Width="400" Source="{Binding Path}" Stretch="None"/>
Result
<img width="1155" height="128" alt="image" src="https://github.com/user-attachments/assets/afc32f59-6d5b-4fa3-aacf-b8a6384d5ed9" />
dataset: 3 gifs
Item 1 is the CPU usage and memory usage of using custom GIF controls
Item 2 is the CPU usage and memory usage when using the webview2 control to load HTML with embedded GIFs
Item 3 is the CPU usage and memory usage when placing GIFs using the native WinUI image control
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0-windows10.0.19041 is compatible. net9.0-windows was computed. net10.0-windows was computed. |
-
net8.0-windows10.0.19041
- Microsoft.Graphics.Win2D (>= 1.3.2)
- Microsoft.Windows.SDK.BuildTools (>= 10.0.26100.4948)
- Microsoft.WindowsAppSDK (>= 1.7.250606001)
- System.Drawing.Common (>= 9.0.9)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.