Feb-03-2025, 01:28 PM
(This post was last modified: Feb-03-2025, 03:52 PM by deanhystad.)
The bitwise operation is performed on the pixels, not the pixel colors. The color setting for your circular mask is irrelevant, as long as it is not 0. If the mask pixel color is 0, the masked_img pixel color is 0. If the mask pixel color is not zero the masked_img pixel color is the img pixel color.