TPixmap.pixels.size ??

BlitzMax Forums/BlitzMax Programming/TPixmap.pixels.size ??

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

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?