Forum 'VintaSoft Imaging .NET SDK and Plug-ins Discussions'

Questions, comments and suggestions concerning VintaSoft Imaging .NET SDK.

Board index < VintaSoft Imaging < VintaSoft Imaging .NET SDK and Plug-ins Discussions

Login

Size in bytes of VintasoftImage



Size in bytes of VintasoftImage

Post 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

Post 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

Post by mimo4o »

Hello Alex,

Yes, I need to get size of image data.

Best regards, Miroslav


Re: Size in bytes of VintasoftImage

Post by Alex »

Size of image data can be calculated as follows:
ImageDataSize = ImageStride * ImageHeight
where
ImageStride = ((((Int32)ImageWidth * ImageBitCount + 31) / 32) * 4)
Best regards, Alexander


Page 1 from 1: 1