I need to send a pixmap over TCP to a client app. I should be able to use WriteBytes() to send the bytes to the client, I can pass in pixmap.pixels for the data, but how do I find the size of them? (or what would go in the 'count' parameter?)
Any other suggestions on sending a pixmap through TCP?
EDIT: Unsure of this, but perhaps width * height * 8? since a byte is 8 bits..
EDIT2: pixmap.capacity?
Any other suggestions on sending a pixmap through TCP?
EDIT: Unsure of this, but perhaps width * height * 8? since a byte is 8 bits..
EDIT2: pixmap.capacity?