FAQ
Cover
\
Build
\
Source
\
Bugs
\
Reference
\
Libraries
\
Tools
The bugs database has moved
here
.
Bug 744 : PImage mask doesn't work after first call
Last modified: 2008-03-13 19:36
P
roject:
processing
trash
Version:
unspecified
Co
m
ponent:
android
book
core
libraries
pde
reference
tools
web
Status:
RESOLVED
Resolution:
FIXED -
Pr
i
ority:
P2
Severity:
normal
Platform
All
O
S:
All
Windows
Mac OS
Linux
Other
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.