// This macro demonstrates how to get the current paste mode. print("Paste mode: "+getCurrentPasteMode()); function getCurrentPasteMode() { index= parseInt(call("ij.gui.Roi.getCurrentPasteMode")); if (index==0) return "Copy" ; if (index==2) return "Transparent-white"; if (index==3) return "Add"; if (index==4) return "Subtract"; if (index==5) return "Multiply"; if (index==6) return "Divide"; if (index==7) return "Blend"; if (index==8) return "Difference"; if (index==9) return "AND"; if (index==10) return "OR"; if (index==11) return "XOR"; if (index==12) return "Min"; if (index==13) return "Max"; if (index==14) return "Transparent-zero"; return -1; }