Just getting going on imaging Lingo here (yeah, I know, way late). This may
be an obvious problem, but it's driving me crazy(ier).
I'm creating a yellow hilite image to overlay some text in a read-along.
When the hilited text wraps, I fill two rects in the image buffer (end of
first line, beginning of second).
When I put the image into the hilite member, I get a strange effect. The
hilite shows up twice--once in the sprite's location, and again a couple
hundred pixels above and to the left.
This only happens when I fill two rects in the image buffer--it works fine
with just one rect.
Here's the code:
pDotSprite.member.image = kSaveDotImage -- single-pixel saved image
if objectP(pHiliteImage) then pHiliteImage = void
hiliteImage = image(266, 42, 16)
startRect = rect(155, 0, 266, 20)
endRect = rect(0, 16, 167, 40)
hiliteImage.fill (startRect , pHiliteColor)
hiliteImage.fill (endRect , pHiliteColor)
pDotSprite.member.image = hiliteImage -- Here's where the problem occurs
pDotSprite.rect = targetRect -- handler parameter
The code is somewhat simplified--I've taken out all the calculations to get
those rects, for example, but all the imaging Lingo is here.
One thing I noticed is that the two rects overlap a bit--the lower left of
startRect overlaps the top right of endRect--but I doubt that's the
problem. Or is it?
Any help greatly appreciated!
Cordially,
Kerry Thompson
[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!]