Ejemplo n.º 1
0
        public TGADecodeContext(Stream bitstream)
        {
            if (bitstream == null)
                throw EX.Create(EXCode.ArgumentNull, "bitstream");

            this.bitstream = bitstream;
            this.header = new TGABitstreamHeader();
        }
Ejemplo n.º 2
0
        private void WriteHeader(TGABitstreamHeader header)
        {
            var buffer = header.ToByteArray();

            this.Bitstream.Seek(0, System.IO.SeekOrigin.Begin);
            this.Bitstream.Write(buffer, 0, buffer.Length);
            this.Bitstream.Flush();
        }
Ejemplo n.º 3
0
        public TGADecodeContext(Stream bitstream)
        {
            if (bitstream == null)
            {
                throw EX.Create(EXCode.ArgumentNull, "bitstream");
            }

            this.bitstream = bitstream;
            this.header    = new TGABitstreamHeader();
        }
Ejemplo n.º 4
0
        private void WriteHeader(TGABitstreamHeader header)
        {
            var buffer = header.ToByteArray();

            this.Bitstream.Seek(0, System.IO.SeekOrigin.Begin);
            this.Bitstream.Write(buffer, 0, buffer.Length);
            this.Bitstream.Flush();
        }