%ffp // This template gets you started when you plan to enhance one of // your FilterFactory plugins with FilterMeister. For this purpose it is // important to be put the FF source code into FilterMeister's // ForEverTile handler as it gives you a lot of new possibilities. //------------------------------------------------------------------------------------------ // Filter Infos Category :"AstroPlugins" Title :"Star Repair" Copyright :"@2005" Author :"James Ryan" Organization:"Astroplugins" URL:"http://www.grekalova.com/plugins/" Filename :"Star Repair.8bf" Description:"Star Repair" Version :"v1.01" About :"!T !V\n!D\n" "!c\n!U" Dialog: Text = "AstroPlugins Star Repair !V !c !A" //Only apply filter to RGB and Grayscale images SupportedModes: RGBMode //------------------------------------------------------------------------------------------ // Filter Control Definitions ctl(0):"Red",val=30 ctl(1):"Green",val=30 ctl(2):"Blue",val=30 ctl(3):"Radius",range = (0,32), val=8 ctl(4):"Bloat",range = (10,100), val=70 ctl(5):"Magnitude", val=100 ctl(6):"Blending",range = (0,100), val=70 //ctl(7):"Counter" ctl(10):statictext,"Please move the mouse over the preview!",size=(150,*),pos=(300,100) ctl(9):OWNERDRAW(staticedge),size=(20,20),pos=(300,10), range=(0, 0xffffff), color=fgColor,val=fgColor, action=preview, tooltip="Choose foreground color" ctl(8):checkbox, "Pick Color",pos=(250,15) //------------------------------------------------------------------------------------------ // Here comes the filter code OnCtl(n):{ int i,j,r; setCtlColor(9, RGB(ctl(0),ctl(1),ctl(2))); if (n == 8 && e == FME_CLICKED) { j3 = 0; } if (n == CTL_PREVIEW && e == FME_MOUSEMOVE && j3==1 && ctl(8) == 0) { for (z=0;z ctl(0)) pset(i,j,0, (int)r1); if (g1 > ctl(1)) pset(i,j,1, (int)g1 ); if (b1 > ctl(2)) pset(i,j,2, (int)b1); } else { pset(i,j,0, r ); pset(i,j,1, g ); pset(i,j,2, b); } } } j1=(int)posx; j2=(int)posy; return true; }//ForEveryTile