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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Zoom value of canvas
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

Dennis445

12 Posts

Posted - Jul 20 2012 :  19:22:48  Show Profile  Reply
Hi, another question

How can I get the zoom value of the canvas so I can update a trackbar.position location?

Thanks

fab

1310 Posts

Posted - Jul 21 2012 :  01:00:54  Show Profile  Reply
Hi,
this is TImageEnView.Zoom property (it is also writable...):

trackbar.Position := trunc( ImageEnView1.Zoom );


Example handling OnViewChange event:

procedure TForm1.ImageEnVect1ViewChange(Sender: TObject; Change: Integer);
begin
  TrackBar1.Position := trunc(ImageEnView1.Zoom);
end;
Go to Top of Page

Dennis445

12 Posts

Posted - Jul 21 2012 :  08:24:30  Show Profile  Reply
Thanks again.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: