Copy selection

Example requests & Code samples for GdPicture Toolkits.
Post Reply
ruby
Posts: 3
Joined: Thu Aug 13, 2015 7:42 am

Copy selection

Post by ruby » Thu Aug 13, 2015 7:48 am

Hello,
i want to copy selection from one viewer to another.
to copy rect i use GetRectCoordinatesOnDocumentInch (viewer) and then CreateClonedGdPictureImageArea (GdPictureImaging) and to paste it i use AddEmbeddedImageAnnot (GetAnnotationManager) on the other viewer. this works fine. my question is about non rectangle shapes: i want to select ConnectedLines area in the first viewer and copy it to the second. is it possible?
tnx

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: Copy selection

Post by Loïc » Fri Aug 14, 2015 10:04 pm

Hello,

It is possible to copy only rectangular region with the GdPicture api. If you want to blend a geometrical region to a bitmap you will have to use something like clipping path that is provided by the gdi+ and wpf framework.

With best regards,

Loïc

ruby
Posts: 3
Joined: Thu Aug 13, 2015 7:42 am

Re: Copy selection

Post by ruby » Sun Aug 16, 2015 5:54 am

He Loïc,
can you point me to the right direction how to do it?
tnx

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests