didier2$2007132
didier2

05/16/2007 :: 12:32

Registered

Hello,
h
ow could u display some image in foreground of the main native image? (by foreground i mean that this image will be of fixed size (not zoomable, when user zoomin the foreground pix is not changed) and always at fixed position in the view (top left corner of my wnd for ex). ?

Regards
Loïc$2006306
Loïc

05/19/2007 :: 16:46

Registered

You can do that with a gdpicture object and using the zoom changed event of the gdviewer.



In vb6:

Private Sub oGdViewer_ZoomChanged()
Dim oGdPicture As New GdpicturePro.cGdPicture
Dim nImageID As Long

nImageID = oGdPicture.CreateImageFromFile("foreground.jpg")
Call oGdPicture.DisplayImageOnHDC(oGdViewer.hDC, 1, 1, 100, 100)
oGdPicture.CloseImage (nImageID)

Set oGdPicture = Nothing
End Sub

Best regards,

Loïc Carrère
back to forum