Size in bytes of VintasoftImage

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

Moderator: Alex

Post Reply
mimo4o
Posts: 9
Joined: Fri Mar 19, 2010 5:12 pm

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
Alex
Site Admin
Posts: 2303
Joined: Thu Jul 10, 2008 2:21 pm

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
mimo4o
Posts: 9
Joined: Fri Mar 19, 2010 5:12 pm

Re: Size in bytes of VintasoftImage

Post by mimo4o »

Hello Alex,

Yes, I need to get size of image data.

Best regards, Miroslav
Alex
Site Admin
Posts: 2303
Joined: Thu Jul 10, 2008 2:21 pm

Re: Size in bytes of VintasoftImage

Post 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
Post Reply