Hi Kerry,
When assigning images to members from the memory buffer, Director
automatically creates a duplicate of the image. However, when reversing the
process, i.e. if you assign the image of a member to an image object, thats
when a pointer is used.
Heres what the message window had to say:
---------
imgA = image(320, 240, 32)
new(#bitmap)
member(1).image = imgA -- Assign the image object to the members image
imgA.draw(rect(20, 20, 300, 220), [#shapeType: #oval, #color: rgb(0, 244,
23)]) -- Draw a circle on the image
---------
At this point, a circle is NOT drawn on member 1's image, despite that
Now perform the following steps several times, each time changing the image
of member 1. You'll notice that imgC is always updated to what is drawn in
member 1.
---------
new(#bitmap)
imgC = member(1).image
new(#bitmap)
member(3).image = imgC
---------
HTH.
Regards,
Pranav
-----------------------------------------------------------
"Simply stated, it is sagacious to eschew obfuscation."
--Norman Augustine
<snip>
I've created an image in memory with imaging lingo. In the debugger, it
shows up as:
hiliteImage = <image:4a3758>
When I do this:
pDotSprite.member.image = hiliteImage
the watch window shows that member as:
pDotSprite.member.image = <image:4b7258>
The image is just a pointer. Shouldn't the member's image be the same as
the hiliteImage buffer? That is, shouldn't the pointers be the same?
<snip>
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]