What Joe asked you is, do you assign a new picture to that reference anywhere during your method? Because if you just modify it without reassignment, then you don't need to pass it byref. An object is a reference, not a value, so when you pass an object byval, you will be modifying that object directly. The only reason you need to pass an object ByRef is if you want to change the actual reference (i.e. do something showpict = new picture). But doing showpict.whatever in the method doesn't need it to be passed byref.
I hope I'm making some sense! ;-) Math On 1/17/07, Robert Livingston <[EMAIL PROTECTED]> wrote:
Yes, I am modifying the passed picture. In this particular case, I am taking the picture and rotating it 90 degrees one way or another or flipping it with a vertical or horizontal mirror. I found code from others, that I copied, that will do this but my problems have been with integrating this code into my own. When I copy other's code, I sometimes do not understand it completely which causes problems when I adapt it for my purposes.
_______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives of this list here: <http://support.realsoftware.com/listarchives/lists.html>
