home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD1.iso / GFX / ADPro251-3.DMS / ADPro251-3.adf / FREDScripts.lha / FREDOperators / LineArt.fred < prev    next >
Encoding:
Text File  |  1994-01-31  |  1.0 KB  |  56 lines

  1. /*
  2. ** LineArt.fred
  3. **
  4. ** $VER: LineArt.fred 1.1.0 (23.10.93)
  5. **
  6. ** This script will perform the line art operator on the current image.
  7. ** It is best that the image have a high contrast to look good so you
  8. ** may have to run a adjustbalancing script on the image prior to this
  9. ** script.
  10. **
  11. ** NOTE: Clip names are case sensitive.
  12. **
  13. ** This script requires FRED v1.4.0 (or higher) to run.  Also required is
  14. ** ADPro v2.5.0 (or higher).
  15. **
  16. ** Copyright © 1992-1993 ASDG, Incorporated
  17. ** All Rights Reserved
  18. */
  19.  
  20.  
  21. ADDRESS "ADPro"
  22. OPTIONS RESULTS
  23.  
  24. PARSE ARG FrameNum FrameFName Length LoadFlag FirstCallSeq FirstCallCell
  25.  
  26. NL = '0A'X
  27. SQ = '27'X
  28. DQ = '22'X
  29. TRUE  = 1
  30. FALSE = 0
  31.  
  32.  
  33. /*
  34. ** See what type of data is loaded in ADPro/MorphPlus.
  35. */
  36.  
  37. CALL "FREDSCRIPTS:FREDFunctions/CheckForImageData" TRUE
  38. IF (RESULT ~= 0) THEN
  39.     EXIT 10
  40.  
  41.  
  42. /*
  43. ** Apply the Line_Art operator.
  44. */
  45.  
  46. OPERATOR "LINE_ART"
  47. IF (RC ~= 0) THEN DO
  48.     ADPRO_TO_FRONT
  49.     OKAY1 "There is no gray data" || NL ||,
  50.         "to operate on."
  51.     SCREEN_TO_FRONT "FRED"
  52.     EXIT 10
  53. END
  54.  
  55. EXIT 0
  56.