AnimatedPngCreator 1.0.0
See the version list below for details.
dotnet add package AnimatedPngCreator --version 1.0.0
NuGet\Install-Package AnimatedPngCreator -Version 1.0.0
<PackageReference Include="AnimatedPngCreator" Version="1.0.0" />
<PackageVersion Include="AnimatedPngCreator" Version="1.0.0" />
<PackageReference Include="AnimatedPngCreator" />
paket add AnimatedPngCreator --version 1.0.0
#r "nuget: AnimatedPngCreator, 1.0.0"
#:package AnimatedPngCreator@1.0.0
#addin nuget:?package=AnimatedPngCreator&version=1.0.0
#tool nuget:?package=AnimatedPngCreator&version=1.0.0
AnimatedPngCreator
Creates animated PNG out ouf a sequence of Images.
Dispose the creator to end the creating process. On disposing the count of images will be written to the header.
Example 1:
// Add three images to an APNG
using CMK;
using System.Drawing;
using System.IO;
namespace ApngTest
{
class Program
{
static void Main(string[] args)
{
Image image1 = Image.FromFile("filename1.bmp");
Image image2 = Image.FromFile("filename2.jpg");
Image image3 = Image.FromFile("filename3.png");
short frameDelay = 1000 / 5; //5 frames per second
using (FileStream outputFile = File.Create("animated.png"))
{
using (var apngCreator = new AnimatedPngCreator(outputFile, image1.Width, image1.Height))
{
apngCreator.WriteFrame(image1, frameDelay);
apngCreator.WriteFrame(image2, frameDelay);
apngCreator.WriteFrame(image3, frameDelay);
}
}
}
}
}
Example 2:
using CMK;
using System.Collections.Generic;
using System.Drawing;
using System.IO;
namespace ApngTest
{
class Program
{
static void Main(string[] args)
{
List<Image> images = new List<Image>
{
Image.FromFile("filename1.bmp"),
Image.FromFile("filename2.jpg"),
Image.FromFile("filename3.png")
};
short frameDelay = 1000 / 5; //5 frames per second
using (FileStream outputFile = File.Create("animated.png"))
{
using (var apngCreator = new AnimatedPngCreator(outputFile, images[0].Width, images[0].Height))
{
foreach(var image in images)
{
apngCreator.WriteFrame(image, frameDelay);
}
}
}
}
}
}
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET Framework | net452 is compatible. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
This package has no dependencies.
NuGet packages (2)
Showing the top 2 NuGet packages that depend on AnimatedPngCreator:
| Package | Downloads |
|---|---|
|
AnimatedPngCreator.System.Drawing
AnimatedPngCreator.System.Drawing is the module to use System.Drawing for loading and writing the images AnimatedPngCreator Create animated PNGs (APNGs) easily and efficiently in .NET projects. The package provides a modular structure that separates core functionality from platform-specific wrappers, allowing developers to choose the appropriate image backend (e.g., System.Drawing or Skia) for their environment. Key Features: Generate animated PNGs from a sequence of images Modular design with separate core and wrapper packages Choose your preferred image backend without affecting core logic Compatible with multiple .NET frameworks through multi-targeting |
|
|
AnimatedPngCreator.SkiaSharp
AnimatedPngCreator.SkiaSharp is the module to use SkiaSharp for loading and writing the images AnimatedPngCreator Create animated PNGs (APNGs) easily and efficiently in .NET projects. The package provides a modular structure that separates core functionality from platform-specific wrappers, allowing developers to choose the appropriate image backend (e.g., System.Drawing or Skia) for their environment. Key Features: Generate animated PNGs from a sequence of images Modular design with separate core and wrapper packages Choose your preferred image backend without affecting core logic Compatible with multiple .NET frameworks through multi-targeting |
GitHub repositories
This package is not used by any popular GitHub repositories.
RC