Hi.
What I need is quite simple. I've an Image (image PDF or TIFF) displayed on a GDviewer. I select a rectangle on this GDVIewer. I want to show the portion of image selected in the GdViewer (if any) in a different Gdviewer, but I don't want to use the clipboard.
Thanks in advance...
Display rectangle
Re: Display rectangle
Hi,
You can do that using a GdPictureImaging object.
Here a snippet:
Other solution consists to use the clipboard using CopyRegion2Clipboard...
Kind regards,
Loïc
You can do that using a GdPictureImaging object.
Here a snippet:
Code: Select all
Dim ImageID As Integer = Imaging1.CreateGdPictureImageFromFile("")
GdViewer1.DisplayFromGdPictureImage(ImageID)
'Here let user to draw a rectangle on the GdViewer
Dim Left, Top, Width, height As Integer
GdViewer1.GetRectCoordinatesOnDocument(Left, Top, Width, height)
Dim ImageID2 As Integer = Imaging1.CreateClonedGdPictureImageArea(ImageID, Left, Top, Width, height)
GdViewer2.DisplayFromGdPictureImage(ImageID2)
Kind regards,
Loïc
Who is online
Users browsing this forum: No registered users and 0 guests