We are new to GdPicture and looking for a way to transfer the content from one GdViewer to another.
Both viewers are located on different forms. In the background we are working with GdPictureImaging form which the GdViewer loads the images.
We already found a way by transferring the ImageID from the first Viewer and than call CreateClonedPictureFromImage(ImageID) on the other.
The problem is that we have to transfer single and multipage images and the aformentioned approach only works for single pages images.
Thanks in Advance!
Jens
Transfer content from one GdViewer to another
Re: Transfer content from one GdViewer to another
Hi,
Just open your image using a GdPictureImaging object that returns an Image identifier.
Then use this image identifier as parameter of the DisplayFromGdPictureImage() method of both GdViewer components.
IE:
Hope this helps !
Just open your image using a GdPictureImaging object that returns an Image identifier.
Then use this image identifier as parameter of the DisplayFromGdPictureImage() method of both GdViewer components.
IE:
Code: Select all
int ImageID = oGdPictureImaging.CreateGdPictureImageFromFile("");
GdViewer1.DisplayFromGdPictureImage(ImageID);
GdViewer2.DisplayFromGdPictureImage(ImageID);
Re: Transfer content from one GdViewer to another
Hi Loïc,
Thanks for your help! It works fine now.
Jens
Thanks for your help! It works fine now.
Jens
Who is online
Users browsing this forum: No registered users and 0 guests