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
 Copy PDFViewer Current Page As Png
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

Ken Randall

52 Posts

Posted - Dec 17 2024 :  04:48:41  Show Profile  Reply
Hi Nigel,

I am using ImageEnView1.IEBitmap.CopyToClipboard(False,True); which works fine except that after adding an image and applying the changes the copy to clipboard does not include the image. How can I get this to work?

Thanks

Ken R

xequte

38682 Posts

Posted - Dec 18 2024 :  20:15:40  Show Profile  Reply
When using the PDF Viewer there is no guarantee that the Bitmap contains content (as the drawing is virtual). So you need to force the drawing to the bitmap before attempting to use it:

ImageEnView1.PdfViewer.SyncToBitmap();
ImageEnView1.IEBitmap.CopyToClipboard(False,True);


Nigel
Xequte Software
www.imageen.com
Go to Top of Page

Ken Randall

52 Posts

Posted - Dec 19 2024 :  02:06:06  Show Profile  Reply
Hi Nigel,

Thanks, works like a dream!

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