I need to know if there's a way to send an array to, and return an array from an function.
In the function i have an array named hImages(;;).
But i want to send an Dimmed array to the function, and return an array from the function.
I want to rotate different images, but with this function all rotated images will be placed in the hImages array. I hope you can understand what i want.
[CODE]
Function CreateRotatedImages(sImage$,iNumRotation, dimmed parameter here ???)
Local hTemp = LoadImage(sImage$)
If hTemp = 0 Then RuntimeError "Can't find image - load error!!"
MaskImage hTemp,255,0,255
Local iMultiplyer = 360 / iNumRotation
; rotate image to generate all directions
For iLoop = 0 To iNumRotation - 1
; first copy the original image into the current frame
hImages(iLoop)=CopyImage( hTemp )
; rotate the frame the appropriate number of degrees
RotateImage hImages(iLoop), iLoop * iMultiplyer
Next
FreeImage hTemp : hTemp = 0
End Function
[/CODE]
In the function i have an array named hImages(;;).
But i want to send an Dimmed array to the function, and return an array from the function.
I want to rotate different images, but with this function all rotated images will be placed in the hImages array. I hope you can understand what i want.
[CODE]
Function CreateRotatedImages(sImage$,iNumRotation, dimmed parameter here ???)
Local hTemp = LoadImage(sImage$)
If hTemp = 0 Then RuntimeError "Can't find image - load error!!"
MaskImage hTemp,255,0,255
Local iMultiplyer = 360 / iNumRotation
; rotate image to generate all directions
For iLoop = 0 To iNumRotation - 1
; first copy the original image into the current frame
hImages(iLoop)=CopyImage( hTemp )
; rotate the frame the appropriate number of degrees
RotateImage hImages(iLoop), iLoop * iMultiplyer
Next
FreeImage hTemp : hTemp = 0
End Function
[/CODE]