Bug 744 : PImage mask doesn't work after first call
Last modified: 2008-03-13 19:36




Status:
RESOLVED
Resolution:
FIXED -
Priority:
P2
Severity:
normal

 

Reporter:
l33tminion
Assigned To:
fry

Attachment Type Created Size Actions

Description:   Opened: 2008-03-09 10:47
(With Processing 0135 Beta running under Windows XP)

Found this problem while trying to dynamically set transparency. After
looking at the code for PImage.mask, I realized that the problem can be
fixed by calling PImage.updatePixels after PImage.mask (since mask modifies
PImage.pixels). A call to this.updatePixels() should probably be added to
the end of PImage.mask (and possibly a call to this.loadPixels() should be
added to the beginning of that function, although that might not be necessary).
Additional Comment #1 From fry 2008-03-13 18:14
found and fixed for 0136. thanks for the report.