Пример #1
0
 public void Encode()
 {
     this._progress = new JpegEncodeProgressChangedArgs();
     //  this.WriteHeaders();
     this.CompressTo(this._outStream);
     this.WriteMarker(new byte[] { 0xff, 0xd9 });
     this._progress.EncodeProgress = 1.0;
     if (this.EncodeProgressChanged != null)
     {
         this.EncodeProgressChanged(this, this._progress);
     }
     this._outStream.Flush();
 }
Пример #2
0
        public void Encode()
        {
            _progress = new JpegEncodeProgressChangedArgs();

            WriteHeaders();
            CompressTo(_outStream);
            WriteMarker(new byte[] { 0xFF, 0xD9 }); // End of Image

            _progress.EncodeProgress = 1.0;
            if (EncodeProgressChanged != null) 
                EncodeProgressChanged(this, _progress);

            _outStream.Flush();
        }
Пример #3
0
        public void Encode()
        {
            _progress = new JpegEncodeProgressChangedArgs();

            WriteHeaders();
            CompressTo(_outStream);
            WriteMarker(new byte[] { 0xFF, 0xD9 }); // End of Image

            _progress.EncodeProgress = 1.0;
            if (EncodeProgressChanged != null)
            {
                EncodeProgressChanged(this, _progress);
            }

            _outStream.Flush();
        }
Пример #4
0
 public void Encode()
 {
     _progress = new JpegEncodeProgressChangedArgs();
     WriteHeaders();
     CompressTo(_outStream);
     WriteMarker(new byte[2]
     {
         255,
         217
     });
     _progress.EncodeProgress = 1.0;
     if (this.EncodeProgressChanged != null)
     {
         this.EncodeProgressChanged(this, _progress);
     }
     _outStream.Flush();
 }
Пример #5
0
 public void Encode()
 {
     this._progress = new JpegEncodeProgressChangedArgs();
   //  this.WriteHeaders();
     this.CompressTo(this._outStream);
     this.WriteMarker(new byte[] { 0xff, 0xd9 });
     this._progress.EncodeProgress = 1.0;
     if (this.EncodeProgressChanged != null)
     {
         this.EncodeProgressChanged(this, this._progress);
     }
     this._outStream.Flush();
 }