how to print only that part of image, which is visible on the window of GdViewer ?
Dim oGdPicture As New GdpicturePro.cGdPicture
Dim nImageID As Long
nImageID = oGdPicture.CreateImageFromHwnd(oGdViewer.hWnd)
oGdPicture.SetNativeImage (nImageID)
oGdPicture.PrintImageDim nLeft As Long, nTop As Long, nHeight As Long, nWidth As Long
Call oGdViewer.GetDisplayedArea(nLeft, nTop, nWidth, nHeight)
Call oGdViewer.CopyRegion2Clipboard(nLeft, nTop, nWidth, nHeight)
Call oGdViewer.DisplayFromClipboardData
Call oGdViewer.PrintImageReturn to GdViewer [Pro] ActiveX
Users browsing this forum: No registered users and 1 guest