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
 Print Zoomed image

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
Arahoushi Posted - Jul 24 2013 : 12:09:02
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?

1   L A T E S T    R E P L I E S    (Newest First)
fab Posted - Aug 01 2013 : 23:43:08
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;