MSIT.NGif.GifEncoder.Start C# (CSharp) Method

Start() private method

private Start ( FileStream os ) : bool
os System.IO.FileStream
return bool
        private bool Start(FileStream os)
        {
            if (os == null) return false;
            bool ok = true;
            _closeStream = false;
            _fs = os;
            try {
                WriteString("GIF89a"); // header
            } catch (IOException) {
                ok = false;
            }
            return _started = ok;
        }

Same methods

GifEncoder::Start ( String file ) : bool

Usage Example

Example #1
0
 public static void OutputGIF(Bitmap f, String fn)
 {
     GifEncoder gif = new GifEncoder();
     gif.SetQuality(4);
     gif.Start(fn);
     gif.AddFrame(f);
     gif.Finish();
 }
All Usage Examples Of MSIT.NGif.GifEncoder::Start