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
 Exact Width and Height of Thumbnail

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
xequte Posted - May 02 2017 : 15:14:46
I have a question:
I need to supply custom bitmaps for the TImageEnMView control.
Is there a way to find out exact Width and Height of the bitmap within the dimensions of the thumbnail, taking into the account border and style settings, to avoid stretching/distortion of the bitmap.
I am using OnImageIDRequest event and it would be convenient to have pre-calculated Width and Height as incoming parameters to the event, so that bitmap can be created with exact measurements and displayed as is by the control.


Thanks,

Eugene
1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - May 02 2017 : 17:42:51
Hi

Please use:

https://www.imageen.com/help/TImageEnMView.ThumbSizeInfo.html

ThumbSize := ThumbSizeInfo( itsImage );


Explanation of ThumbSizeInfo Data param:

Here is a filled TImageEnMView:

_[o]_[o]_[o]_[o]_
_[o]_[o]_[o]_[o]_
_[o]_[o]_[o]_[o]_
_[o]_[o]_[o]_[o]_

itsImage: Just the thumbnail "o"
itsCell: Just the thumb cell "[o]"
itsOuter: Cell and the spacing around it "_[o]_"

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