Note: You must be registered in order to post a reply. To register, click here. Registration is FREE!
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;