Thread: dzImage Library
View Single Post
  #34 (permalink)  
Old 01-16-2008, 12:43 PM
klaus's Avatar
klaus klaus is offline
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Switzerland
Posts: 675
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default

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
Reply With Quote