Not automatic and might fail
id:3418688 The top right one
You can definitely do it in one pixel, CRAY(WARP, PSCN, DRAY) tmp=1, tmp2=0,1,2, BCLN(PSCN), BTRY. But you might be able to shrink it down to a smaller stack size.
i made a 3x3 some time ago
I assume part wise it might be more compact, but area based on if it were a rectangle I could do, and Im not that smart