home *** CD-ROM | disk | FTP | other *** search
- /*
- * $VER: EOT_GaussianBlur.ifx.pre 2.6 (24.04.96)
- * Copyright © 1992-1996 Nova Design, Inc.
- *
- * Written by Ola Eric Olsson
- *
- */
-
- OPTIONS RESULTS
-
- base = 'autofx_gaussian_'
-
- sigma = GETCLIP(base||'sigma')
- radius = GETCLIP(base||'radius')
- blend = GETCLIP(base||'blend')
-
- IF sigma = ""; THEN sigma = 10; ELSE sigma = TRUNC(sigma*10)
- IF radius = "" THEN radius = 2
- IF blend = "" THEN blend = 100
-
- /******************************************************************/
- /** File requester with gadgets. **/
- /******************************************************************/
-
- title = '"EOT_GaussianBlur"'
-
- text1 = '"Sigma:"'
- text2 = '"Radius:"'
- text3 = '"Blend:"'
-
- gad.1 = 'SLIDER LE=130 TE=10 WD=150 HT=15 LB='text1' IN='sigma' LO=1 HI=100 LV=%-3ld'
- gad.2 = 'SLIDER LE=130 TE=30 WD=150 HT=15 LB='text2' IN='radius' LO=1 HI=3 LV=%-3ld'
- gad.3 = 'SLIDER LE=130 TE=50 WD=150 HT=15 LB='text3' IN='blend' LO=0 HI=100 LV=%-3ld'
- gad.4 = 'END'
-
- newcomplexrequest title gad 340 100
- IF rc ~= 0 THEN EXIT rc
-
- sigma = TRUNC(RESULT.1/10,1)
- radius = RESULT.2
- blend = RESULT.3
-
- /* requestnotify '"Sigma = '||sigma||'"' */
-
- CALL SETCLIP(base||'sigma', sigma)
- CALL SETCLIP(base||'radius', radius)
- CALL SETCLIP(base||'blend', blend)
-
- EXIT
-