Class GifEncoder
public class GifEncoder
- Inheritance
-
objectGifEncoder
Constructors
- GifEncoder()
Default constructor. Repeat will be set to -1 and Quality to 10.
- GifEncoder(int, int)
Constructor with the number of times the set of GIF frames should be played.
Fields
Methods
- AddFrame(GifFrame)
Adds next GIF frame. The frame is not written immediately, but is actually deferred until the next frame is received so that timing data can be inserted. Invoking
flushes all frames.Finish()
- Finish()
Flushes any pending data and closes output file. If writing to an OutputStream, the stream is not closed.
- SetDelay(int)
Sets the delay time between each frame, or changes it for subsequent frames (applies to last frame added).
- SetFrameRate(float)
Sets frame rate in frames per second. Equivalent to
.SetDelay(1000/fps)
- Start(FileStream)
Initiates GIF file creation on the given stream. The stream is not closed automatically.
- Start(string)
Initiates writing of a GIF file with the specified name. The stream will be handled for you.