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 » Thu Feb 14, 2013 4:17 pm

Hello all,

How can I get the size of VintasoftImage in bytes?

Thanks in advance!
Best regards,
Miroslav Vasilev

Alex
Site Admin
Posts: 1443
Joined: Thu Jul 10, 2008 2:21 pm

Re: Size in bytes of VintasoftImage

Post by Alex » Fri Feb 15, 2013 7:09 pm

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 » Tue Feb 19, 2013 11:21 am

Hello Alex,

Yes, I need to get size of image data.

Best regards, Miroslav

Alex
Site Admin
Posts: 1443
Joined: Thu Jul 10, 2008 2:21 pm

Re: Size in bytes of VintasoftImage

Post by Alex » Tue Feb 19, 2013 1:08 pm

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

Who is online

Users browsing this forum: No registered users and 2 guests