VectSharp 2.6.1
A light library for C# vector graphics
Loading...
Searching...
No Matches
VectSharp.AnimatedPNG Class Reference

Contains methods to create animated PNG image files. More...

Classes

class  CompressedFrame
 Represents an individual frame of a PNG animation. More...
 

Public Types

enum  InterframeCompression
 Types of inter-frame compression. More...
 

Static Public Member Functions

static unsafe void Create (Stream outputStream, int width, int height, bool hasAlpha, IReadOnlyList< CompressedFrame > compressedFrames, int repeatCount)
 Create a new animated PNG image, outputting it to the specified stream. More...
 

Detailed Description

Contains methods to create animated PNG image files.

Definition at line 30 of file ImageFormats.cs.

Member Enumeration Documentation

◆ InterframeCompression

Types of inter-frame compression.

Definition at line 35 of file ImageFormats.cs.

Member Function Documentation

◆ Create()

static unsafe void VectSharp.AnimatedPNG.Create ( Stream  outputStream,
int  width,
int  height,
bool  hasAlpha,
IReadOnlyList< CompressedFrame compressedFrames,
int  repeatCount 
)
static

Create a new animated PNG image, outputting it to the specified stream.

Parameters
outputStreamThe stream to which the animated PNG image will be written.
widthThe width of the image in pixels.
heightThe height of the image in pixels.
hasAlphaIf the frames of the image have an alpha channel, set this to true; otherwise, set it to false.
compressedFramesThe frames that will be used to create the animated PNG image.
repeatCountThe number of times that the animation should loop. Set this to 0 for an infinitely repeating animation.

Definition at line 181 of file ImageFormats.cs.


The documentation for this class was generated from the following file: