Hello all,
How can I get the size of VintasoftImage in bytes?
Thanks in advance!
Best regards,
Miroslav Vasilev
Size in bytes of VintasoftImage
Moderator: Alex
Re: Size in bytes of VintasoftImage
Hello Miroslav,
I'm not sure I have understood your question. Do you need to get size of image data?
Best regards, Alexander
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
Hello Alex,
Yes, I need to get size of image data.
Best regards, Miroslav
Yes, I need to get size of image data.
Best regards, Miroslav
Re: Size in bytes of VintasoftImage
Size of image data can be calculated as follows:
where
Best regards, Alexander
Code: Select all
ImageDataSize = ImageStride * ImageHeight
Code: Select all
ImageStride = ((((Int32)ImageWidth * ImageBitCount + 31) / 32) * 4)