Nie.
Napiszę tak:
Header ( 9 bytes ):
- message ID ( 1 byte )
- width ( 4 bytes )
- height ( 4 bytes )
Packet ( 7 bytes ):
- red ( 1 byte )
- green ( 1 byte )
- blue ( 1 byte )
- position ( 4 bytes )
Footer ( 1 byte ):
- $FF
I:
Send header.
Send packet while width * height < position.
Send footer message.
If message ID == image transmission ID do:
- if message length == 1 and == $FF: exit, save image
- else: get red, green and blue. make color. put in position.
Czy coś takiego.
Pozdrawiam, mroow. :cat: