08-22-2006, 9:02
|
Maen Hasan

Joined on 08-05-2004
Posts 1,880
|
Re: Overlay on raster image with VB6
|
 
 
|
|
|
Hello,
To do this you need to load the
raster image on LEAD Main OCX control and load the vector image on LEAD
Vector Control. Then make both controls hidden (.Visible = False). Then
you need to use the Render method as follows:
+-----------------------+
Private Sub Form_Paint()
If LEAD1.Bitmap <> 0 Then 'Use main OCX here
LEAD1.Render Me.hdc, 0, 0, 0, 0
End If
If Not LEADVector1.IsEmpty Then
LEADVector1.Render Me.hdc, 1, 1, Me.ScaleWidth / Screen.TwipsPerPixelX,
Me.ScaleHeight / Screen.TwipsPerPixelY
End If
End Sub
+-----------------------+
Thanks,
Maen Badwan
LEADTOOLS Technical Support
|
|
|
|
|
Report
|
|
|
|