Inheritance: Format
示例#1
0
文件: JPEG.cs 项目: defrex/moxie
        public byte[] stripHeaders(Stream stream)
        {
            JPEG img = new JPEG(stream);
            List <Dictionary <string, object> > headers = img.extractHeaders();
            BinaryReader br = new BinaryReader(stream);

            for (int i = headers.Count - 1; i >= 0; i--)
            {
                br.SEGMENT(Convert.ToInt32(headers[i]["start"]), Convert.ToInt32(headers[i]["length"]), new byte[0]);
            }
            return(br.SEGMENT());
        }
示例#2
0
        public byte[] stripHeaders(Stream stream)
        {
            JPEG img = new JPEG(stream);
            List<Dictionary<string, object>> headers = img.extractHeaders();
            BinaryReader br = new BinaryReader(stream);

            for (int i = headers.Count - 1; i >= 0; i--)
            {
                br.SEGMENT(Convert.ToInt32(headers[i]["start"]), Convert.ToInt32(headers[i]["length"]), new byte[0]);
            }
            return br.SEGMENT();
        }