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
 TImageEnView.AutoSize?

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
PeterPanino Posted - May 23 2013 : 08:28:51
Hi! Doesn't TImageEnView have something like TImage.AutoSize, which automatically fits the size of the ImageEnView1 component to the size of the contained image?
4   L A T E S T    R E P L I E S    (Newest First)
w2m Posted - May 23 2013 : 09:17:57
ImageEnView1.IO.LoadFromFile(AFilename);
ImageEnView1.Align := alNone;
ImageEnView1.ScrollBars := ssNone;
ImageEnView1.Width := ImageEnView1.IdealComponentWidth;
ImageEnView1.Height := ImageEnView1.IdealComponentHeight;
ImageEnView1.Update;


William Miller
Adirondack Software & Graphics
Email: w2m@frontiernet.net
EBook: http://www.imageen.com/ebook/
Apprehend: http://www.frontiernet.net/~w2m/index.html
PeterPanino Posted - May 23 2013 : 09:12:23
As a workaround now I use:
procedure TForm1.ImageEnView1Resize(Sender: TObject);
begin
  ImageEnView1.Height := ImageEnView1.IEBitmap.Height;
  ImageEnView1.Width := ImageEnView1.IEBitmap.Width;
end;

I hope that the TImageEnView.OnResize event is triggered ALWAYS when TImageEnView internally changes the size of the IEBitmap. An AutoSize property like in TImage would be better.
PeterPanino Posted - May 23 2013 : 08:55:09
No. This resizes the contained image to the size of the ImageEnView1 component. I need something which automatically fits the size of the ImageEnView1 component to the size of the contained image. Just the same as TImage.AutoSize does.
klausdoege Posted - May 23 2013 : 08:41:14
Hello,
yes that gives it.
Try imageenview.fit;

Klaus
www.klausdoege.de