home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Corel Draw 6
/
corel-draw-6-cd1.iso
/
photopnt
/
paint.csc
< prev
next >
Wrap
Text File
|
1995-08-18
|
1KB
|
50 lines
REM Illustrates some Paint commands
REM Paint.csc 1 June, 1995
REM This script uses a file on the Draw 6 CD#1 disk.
REM Please make sure it is inserted in the machine before you run the script.
REM This file just illustrates some of photopaint's functions
REM It doesn't actually do anything, but if you have paint
REM visible as you step through this, you will get an idea of
REM what each command does.
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 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 20
.ObjectCreate 0
.MaskSelectAll
.MaskReduce 120
.ObjectCreate 0
.ObjectSelectall
.ObjectGroup
.ObjectUngroup
.ObjectFeather 20, 1
.ObjectDefringe 30
.ObjectOpacity 90
.ObjectRemoveMatte 0
.ObjectTranslate -116, 41
.SnapToGrid 1
.FileRevert
.EditUndo
.MaskLoad drive+":\photopnt\plgbrush\clamshel.bmp", -1, -1, -1, -1, 0
MESSAGE "done"
END WITHOBJECT