passing image to function

BlitzPlus Forums/BlitzPlus Beginners Area/passing image to function

I have something like this.
rscroll=loadimage("scroll.png")
lscroll=copyimage (rscroll)

ok,now I'm going to rotate and scale both images.Can I pass rscroll and lscroll to a function so I can rotate and scale them?Something like this
rotatemyimage(rscroll)
rotatemyimage(lscroll)

function rotatemyimage(image)
    rotateimage image,180
    scaleimage image,.5,.5
end function


then will lscroll and rscroll be rotated and scaled when I use the drawimage command?
drawimage lscroll,x,y
drawimage rscroll,x,y

I'm at work right now and can't try this.
thanks,
mudcat

Why is there no preview when you create topic?