Exemplo n.º 1
0
 public override void Read(IReader r)
 {
     base.Read(r);
     width  = r.Int();
     height = r.Int();
     data   = new byte[width * height];
     for (int i = 0; i < width * height; i++)
     {
         data[i] = r.Byte();
     }
 }
Exemplo n.º 2
0
    public void Read(IReader r)
    {
        this.r = r.Byte();
        g      = r.Byte();
        b      = r.Byte();
        a      = r.Byte();

        m = r.Byte();
        s = r.Byte();
        e = r.Byte();
        u = r.Byte();
    }