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
 PDF Continuous Doc Mode Issue
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

PaulF

United Kingdom
9 Posts

Posted - Sep 09 2024 :  05:04:16  Show Profile  Reply
Hi,
I'm using continuous (ShowAllPages) PDF document mode to show the bottom of one page and the top of the following page. I then want to take a snapshot of what is presented.
I sync the PDF viewer to the Bitmap, then use DrawToTIEBitmap to draw the screenshot to another IEBitmap which I can show and save to file.
Unfortunately it only captures the bottom of the first page, the top of the following page is blank see attached image. Is there another way of capturing what is presented?
regards
Paul


  ImageEnView.PdfViewer.SyncToBitmap;

  IEBmpSnapshot := TIEBitmap.Create;
  IEBmpSnapshot.ParamsEnabled := True;
  IEBmpSnapshot.PixelFormat := ie24RGB;
  IEBmpSnapshot.Width := IERectangle(imageenview.VisibleBitmapRect).Width;
  IEBmpSnapshot.Height := IERectangle(imageenview.VisibleBitmapRect).Height;
  { Check if contains any annotation layers that should be in the snapshot. }
  if imageenview.LayersCount > 1 then
  begin
    imageenview.LayersSaveMergedTo(IEBmpSnapshot);
  end { if layers }
  else
  begin
    imageenview.IEBitmap.DrawToTIEBitmap(IEBmpSnapshot, 0, 0,
      IERectangle(imageenview.VisibleBitmapRect));
  end; { if not layers }




xequte

38530 Posts

Posted - Sep 09 2024 :  19:55:19  Show Profile  Reply
Hi Paul

Please email me for the latest beta which includes DrawViewTo().

Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: