Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Corel Draw Script 2

Status
Not open for further replies.

ulrike96

Technical User
May 12, 2003
7
DE
Hello, all,
I'm looking for a way to automize the following steps
in Corel Draw:
importing a bitmap
applying blurr (Gaussian)
exporting the bitmap.

Is there someone experienced with scripts like this ?
Ulrike
[thumbsup2]
 
Well, first question is why you'd want to do this in Draw? Draw does not have the full range of bitmap tools that Photopaint does. I'm curious, what's the reasoning behind bringing this into Draw instead of doing it in Photopaint?
 
I don't have to do it in CorelDraw. The reason why I tried it so far
was that the Gaussian blurr I need works fine with Corel. If there
are better solutions with Photopaint, it's fine with me !
 
you should be able to just go into Photopaint, open up an image, open up the Recorder docker, hit the record button, do your effect, then stop recording. Save your script, open the script up in Notepad and you'll probably want to delete the first action line... it'll say something like: .SetDocumentInfo 760, 96
and resave it.

Unless all of your images are exactly the same size, you'll want to delete this otherwise it will resize all those images to whatever size the image was that the script was created with.

Then, if you've got a lot of images to work with, you can then go to File/Batch Process, choose a bunch of files and then choose a script (or scripts) to run on them.
 
Thanks a lot,
this will prevent days of boring work !
[2thumbsup]
 
The method you mentioned works perfect.
The only thing I still have to solve is to
find out what is the counterpart for
"sprintf" (C language) in Visual Basic so that
I can loop through the file names.
Any ideas ?
 
I don't know, unfortunately, as I make no claims at being a good scripter, but doesn't the "batch process" work? You should be able to select all the files you want to process there and even choose to save to a new file or folder.
 
That's true, probably that's also what I'm going to do. I was just
wondering whether there is a more "elegant" solution, but
unfortunately I'm not so familiar with Visual Basic yet.
If I should still find a "loop" solution (which is nice if you
need more than 200 repetitions of the same procedure),
I'll let you know.
[morning]
 
I have to open chinese made Coreldraw files in Coreldraw 12 dutch language. After changing the language to chinese the files still does not open.
Error: Can't open file due to importfilter.

How can I open these files
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top