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 / Fit to page
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

mivi71dk

Denmark
9 Posts

Posted - Sep 03 2014 :  22:55:02  Show Profile  Reply
Hi

I use a TImageEnVect to see a TIFF File.
I have loaded the TIFF Image, and I would like it to be Fit To page or zoomed to a specific level depending on user preselection.

How do I set these values just after image has been loaded?

Regards
Michael

xequte

38616 Posts

Posted - Sep 04 2014 :  00:50:12  Show Profile  Reply
Hi

Set it to a specific zoom using:

http://www.imageen.com/help/TImageEnView.Zoom.html


Or make it shrink to window size automatically using AutoShrink:

http://www.imageen.com/help/TImageEnView.AutoShrink.html

Or manually using Fit:

http://www.imageen.com/help/TImageEnView.Fit.html

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

mivi71dk

Denmark
9 Posts

Posted - Sep 04 2014 :  01:19:55  Show Profile  Reply
Thanks


I'm still getting my feeling on this new component. Looks very great so far :)

Mivi
Go to Top of Page

pabloabl

4 Posts

Posted - Sep 08 2014 :  07:01:51  Show Profile  Reply
Hi, do you know how to center de zoom on the mouse arrow?

Thanks and best regards.
Pablo.
Go to Top of Page

w2m

USA
1990 Posts

Posted - Sep 08 2014 :  12:47:10  Show Profile  Reply
procedure TForm1.ImageEnView1MouseDown(Sender: TObject; Button: TMouseButton;
  Shift: TShiftState; X, Y: Integer);
{ ImageEnView Mouse Down. }
var
  iZoom: double;
begin
  if Button = mbLeft then
  begin
    iZoom := ImageEnView1.Zoom + 25;
    ImageEnView1.ZoomAt(x, y, iZoom, False);
  end
  else
  begin
    iZoom := ImageEnView1.Zoom - 25;
    ImageEnView1.ZoomAt(x, y, iZoom, False);
  end;
end;


Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
Go to Top of Page

pabloabl

4 Posts

Posted - Sep 08 2014 :  16:28:33  Show Profile  Reply
Thank you very much.
It worked perfect.

Best regards!.
Pablo.
Go to Top of Page

mivi71dk

Denmark
9 Posts

Posted - Sep 15 2014 :  06:30:00  Show Profile  Reply
Is there also an easy "Fit to pagewidth" function?
Go to Top of Page

mivi71dk

Denmark
9 Posts

Posted - Sep 15 2014 :  06:34:41  Show Profile  Reply
FitToWidth might do the trick :S

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: