Example #1
0
 public void Parse(Stream stream)
 {
     type = (byte)stream.ReadByte();
     if (type == 0x40 || type == 0x41 || type == 0x42 || type == 0x43)
     {
         BinaryReader reader = new BinaryReader(stream);
         bitmap_matrix = new SWFMatrix();
         bitmap_ref    = reader.ReadUInt16();
         bitmap_matrix.Parse(stream);
     }
     else
     {
         throw new Exception("認識できない FillStyle です。");
     }
 }
Example #2
0
            public void Parse(BinaryReader reader)
            {
                byte b = (byte)reader.ReadByte();

                depth_ = reader.ReadUInt16();
                if ((b & 0xE1) != 0)
                {
                    throw new Exception("error");
                }
                if ((b & 0x02) != 0)
                {
                    object_id_ref_ = reader.ReadUInt16();
                }
                if ((b & 0x04) != 0)
                {
                    matrix_ = new SWFMatrix();
                    matrix_.Parse(reader.BaseStream);
                }
                if ((b & 0x08) != 0)
                {
                    color_trans_ = new SWFColorTransform();
                    color_trans_.Parse(reader.BaseStream, true);
                }
            }