We have the opaque area, now we need to subtract the transparent area. to do this, I'll use the Layer Channel "Transparent" if we look at the "rgba", we have the area that we need... doing a color manipulation, we'll get the desired result 