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?

Uh, yep.

O.K.,
So,that means if I do this
a=loadimage("image.png")
b=a
c=a
d=a

then whatever I do to b,c,or d will effect a,b,c or d.I was also wondering about passing images to functions but I guess I'm not passing the image but a pointer to the image.

Thanks Wolron,
mudcat

Uh, yep.