Discussion:
Merging ink objects
(too old to reply)
Ravi
2008-12-27 01:56:00 UTC
Permalink
Hi,

I have two ink objects that I'm trying to merge. Is there a simple way to do
this?

When I try to add the strokes from Ink2 to Ink1, the memory seems to be
going up as I repeat this process.

Any suggestions are greatly appreciated.

Thank you,
Ravi
Josh Einstein
2008-12-28 22:46:31 UTC
Permalink
Isn't that what you'd expect? Under the surface, the ink strokes are just
integer arrays. Copying them from one ink object to another creates a copy
of the array that makes up the stroke. Effectively you should see the memory
used by Ink1 doubled by the time it's copied to Ink2.

I suppose you could delete the strokes from the first ink object when you've
added it to the second, but are you really dealing with ink so big that you
need to manage the memory like that?

Josh Einstein
Post by Ravi
Hi,
I have two ink objects that I'm trying to merge. Is there a simple way to do
this?
When I try to add the strokes from Ink2 to Ink1, the memory seems to be
going up as I repeat this process.
Any suggestions are greatly appreciated.
Thank you,
Ravi
Loading...