Why wouldn't you use this?Michael Vogel wrote:Code: Select all
FreeImage("temp") ;how to free the memory again?
Code: Select all
FreeImage(temp)
Why wouldn't you use this?Michael Vogel wrote:Code: Select all
FreeImage("temp") ;how to free the memory again?
Code: Select all
FreeImage(temp)
Because FreeImage needs the image number (#Image) not the handle (*Image) as a parameter, isn't it?Demivec wrote:Why wouldn't you use this?Code: Select all
FreeImage(temp)
Code: Select all
ImageID = CreateImage(0, 32, 32)
Debug ImageID
Debug ImageID(0)
FreeImage(0)
Debug ""
ImageAny = CreateImage(#PB_Any, 32, 32)
Debug ImageAny
Debug ImageID(ImageAny)
FreeImage(ImageAny)
Code: Select all
For i=1 To 10
Debug CreateImage(i,1<<i,1<<i)
Next i
Debug ""
For i=1 To 10
Debug CreateImage(#PB_Any,1<<i,1<<i)
Next i