Removing PImage mask

Hi !
I wonder if there is a way to remove the alpha mask of a PImage (applied with the PImage.mask() command) or if I just have to apply an int array full of 255…

I guess so. Or you can hack it by using blendMode REPLACE
https://processing.org/reference/blendMode_.html

2 Likes

I ended up with this… Actually it’s quite fast.
Its called with : noMask(myPImage);

void noMask(PImage i) { 
  int[] masque= new int[i.width*i.height];
  for (int a=0; a<masque.length; a++) {
    masque[a]=255;
  }
  i.mask(masque);
}
1 Like