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
 Print Zoomed image
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

Arahoushi

1 Posts

Posted - Jul 24 2013 :  12:09:02  Show Profile  Reply
I would like to zoom in on an image, and only print what is visible. Looking through the demos, I wasn't able to find an example. Is there a way to do this?

fab

1310 Posts

Posted - Aug 01 2013 :  23:43:08  Show Profile  Reply
You should use a second TImageEnView to contain the visible area. Select visible area, then copy it using AssignSelTo(). Example:

var
  ie: TImageEnView;
begin

  ImageEnView1.SelectionBase := iesbClientArea;
  ImageEnView1.Select(0, 0, ImageEnView1.ExtentX, ImageEnView1.ExtentY);

  ie := TImageEnView.Create(nil);
  try
    ImageEnView1.AssignSelTo(ie);
    ie.IO.DoPrintPreviewDialog();
  finally
    ie.Free();
  end;
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: