Page 1 of 1

Size in bytes of VintasoftImage

Posted: Thu Feb 14, 2013 4:17 pm
by mimo4o
Hello all,

How can I get the size of VintasoftImage in bytes?

Thanks in advance!
Best regards,
Miroslav Vasilev

Re: Size in bytes of VintasoftImage

Posted: Fri Feb 15, 2013 7:09 pm
by Alex
Hello Miroslav,

I'm not sure I have understood your question. Do you need to get size of image data?

Best regards, Alexander

Re: Size in bytes of VintasoftImage

Posted: Tue Feb 19, 2013 11:21 am
by mimo4o
Hello Alex,

Yes, I need to get size of image data.

Best regards, Miroslav

Re: Size in bytes of VintasoftImage

Posted: Tue Feb 19, 2013 1:08 pm
by Alex
Size of image data can be calculated as follows:

Code: Select all

ImageDataSize = ImageStride * ImageHeight
where

Code: Select all

ImageStride = ((((Int32)ImageWidth * ImageBitCount + 31) / 32) * 4)
Best regards, Alexander