ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Image Size in bytes

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
bperkins Posted - Nov 11 2011 : 09:51:29
I've been looking for a simple way to determine the size in bytes of the loaded image. I don't want to have to write the image to disk and see the image size in bytes. I have the image loaded I should be able to tell the size.

Thank you
3   L A T E S T    R E P L I E S    (Newest First)
fab Posted - Nov 30 2011 : 01:47:18
A more generic way:
size := ImageEnView1.IEBitmap.Height * ImageEnView1.IEBitmap.RowLen;

It measures size in bytes, counting also padding bytes, for all pixel formats.
johnrboren Posted - Nov 29 2011 : 15:14:45
Following up on this, why don't you have a property that does this for us? Meaning, instead of me determining the bit of the image, just have you test that and publish a read-only property that has the actual size.

JOHN BOREN
xequte Posted - Nov 11 2011 : 11:26:26
Hi

24bit color images have 3 RGB values per pixel so you can work out the size in bytes as:

W X H x 3


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com