On 11-mei-2006, at 16:40, Mark Hagers wrote:
Below is a behavior that produces a reasonable smear brush effect,
using a circular matte (created from the member "bol" as in your
script).
The effect becomes less convincing if you move the mouse very
quickly, causing the individual copypixels commands to be widely
spaced, but that could be fixed by recording the mouse locations in
a list during a stroke, and asynchronously handling the associated
paint actions (too much work to whip up quickly right now).
I just saw I made a mistake. The line:
p_maskOffset = point(p_maskWidth / 2, p_maskWidth / 2)
should really be:
p_maskOffset = point(maskWidth / 2, maskWidth / 2)
Or the maskoffset is wrong.
I also noticed that when you draw on a light image, the result tends
to get darker with every stroke. Maybe this is caused by overlap of
the source and destination rects of the copypixels command?
If that's indeed the cause, then it could probably be solved by using
an intermediate bitmap to first copy the source area, before
copypixeling it into the dest area.
I may revisit the behavior if I'm in the mood.
Mark Hagers
[EMAIL PROTECTED]
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/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!]