home *** CD-ROM | disk | FTP | other *** search
- REM Illustrates some of the mask functions for photopaint
- REM Masks.csc 24 MAY, 1995
-
- REM This script uses a file on the Draw 6 CD#1 disk. It must be in your machine
- REM when running this script. You can change the FileName variable to make it run on
- REM a different file.
-
- REM Get CD drive
- drive = INPUTBOX("Please enter the letter of your CD-ROM drive" + CHR(13) + CHR(10) + "Make sure that the CorelDRAW6 CD#1 disk is in the drive")
- IF drive = "" THEN
- MESSAGE "You didn't enter anything!"
- STOP
- END IF
- REM Remove any thing after the drive letter
- drive = LEFT(drive, 1)
- FileName$ = drive + ":\color\moncalib.bmp"
- REM This opens a file, and performs a bunch of mask commands on it
- REM Minimize script and step through to see what each one does.
- WITHOBJECT PAINT
- .FileOpen FileName, -1, -1, -1 ,-1, 0
- .MaskSelectAll
- .MaskReduce 80
- .MaskTranslate 40, 40
- .MaskSkew 45, 270, 260, 0, -1
- .MaskStretch 45, 164, 275, 270
- .MaskRotate 268, 363, -450, 0
- .MaskDistort 100, 100, 100, 200, 300, 250, 200, 200
- END WITHOBJECT
-