Hello Dimitris,
I tried also the DrawImage function and didn't get a result. I agree with derez that an example would be of interest.
For the moment I use CopyImage
Sub HScroll_ValueChanged
ErrorLabel(DoneH)
MapX=HScroll.Value
bmpMap.Value=MapImage.CopyImage(ImageList1.Item(Ma p_I),MapX,MapY,GW,GH)
' bmpMap.Value=MapImage.DrawImage(frmMain.Image,Imag eList1.Item(Map_I),MapX,MapY,GW,GH)
frmMain.DrawImage(bmpMap.Value,GX0,GY0)
DoneH:
End Sub
CopyImage is OK
DrawImage not
The ErrorLabel(DoneH) is to avoid an Out of memory error.
I use it in a small program to display parts of a bigger bitmap (in my case maps) onto a defined area on the screen.
Best regards
Klaus
Switzerland
|