OberonPlace.com Forums  

Go Back   OberonPlace.com Forums > Developer Forums > VBA > Corel Photo-Paint VBA

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 03-05-2004, 19:08
micahk
Guest
 
Posts: n/a
Default How do you successful call the DeInterlace sub?

I am trying to automate some resizing, scaling, and DeInterlacing of some stills from a Video source. I cannot call the DeInterlace sub successfully. I do not know what to put for the ReplaceMode As Long value. Here is what I have so far:


Code:
Sub Resizer()

Call CorelScript.ImageDeInterlace(  [i][b]what goes here[/b][/i]  )
Call CorelScript.ImageResample(600, 450, 72, 72, True)
Call CorelScript.ImagePapersize(600, 400, 0, 25, 5, 0, 0, 0, 0)

End Sub

I also tried this with a BitmapEffect, but it didn't work either. I am running PP11, so has it changed? Is there a good book for Corel Photo-Paint VBA?
Reply With Quote
  #2  
Old 03-05-2004, 19:51
Alex's Avatar
Alex Alex is offline
Administrator
 
Join Date: Nov 2002
Posts: 1,940
Blog Entries: 4
Default Re: How do you successful call the DeInterlace sub?

Yes, you need to use BitmapEffect command. Here is how:

Code:
With CorelScript
    .BitmapEffect "DeInterlace", "DeInterlaceEffect.V11 DeinterlaceScan=0,DeinterlaceMode=1"
    .ImageResample 600, 450, 72, 72, True
    .ImagePapersize 600, 400, 0, 25, 5, 0, 0, 0, 0
End With
The best way to figure this out is to use the Recorder docker. You record your actions, save them as CorelScript file (.csc), open in Notepad, and see what commands are generated. Then just copy the text, paste in VBA editor, replace WITHOBJECT..END WITHOBJECT with With CorelScript...End With as shown in the exacmple above and it should work OK...

I hope this helps.
Reply With Quote
  #3  
Old 03-05-2004, 21:34
micahk
Guest
 
Posts: n/a
Default

That is exactly how I wanted it to work.


I cant tell you how long I looked for the macro recorder function in Corel Photo-Paint. Maybe I shoulda went to the help menu and searched for it. But that should answer a lot of future questions.

Thank you.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
HOW-TO call coreldraw12 find dialog from VBA code???? wOxxOm CorelDRAW/Corel DESIGNER VBA 4 02-03-2008 09:32
Macro Call from VFP BobReed CorelDRAW/Corel DESIGNER VBA 4 20-02-2005 21:25


All times are GMT -5. The time now is 21:26.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.
Copyright © 2011, Oberonplace.com