Note: You must be registered in order to post a reply. To register, click here. Registration is FREE!
T O P I C R E V I E W
bperkins
Posted - Nov 11 2011 : 09:51:29 I've been looking for a simple way to determine the size in bytes of the loaded image. I don't want to have to write the image to disk and see the image size in bytes. I have the image loaded I should be able to tell the size.
Thank you
3 L A T E S T R E P L I E S (Newest First)
fab
Posted - Nov 30 2011 : 01:47:18 A more generic way:
It measures size in bytes, counting also padding bytes, for all pixel formats.
johnrboren
Posted - Nov 29 2011 : 15:14:45 Following up on this, why don't you have a property that does this for us? Meaning, instead of me determining the bit of the image, just have you test that and publish a read-only property that has the actual size.
JOHN BOREN
xequte
Posted - Nov 11 2011 : 11:26:26 Hi
24bit color images have 3 RGB values per pixel so you can work out the size in bytes as: