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 24-04-2004, 06:01
feldgendler
Guest
 
Posts: n/a
Default Many CorelScript methods not working in PP11

In PP11, the following VBA code just does nothing:

Code:
CorelScript.ImageGamma 200
Just nothing changes to the image, and no action is recorded in the Undo list.

Replacing the code with

Code:
CorelScript.BitmapEffect "GammaEffect", "GammaEffect.V11 Gamma_Level=200"
helped, but I've also discovered that, for example, CorelScript.ImageInvert does not work either. I suspect that none of the CorelScript.ImageXXX functions work. They just do nothing. I know that almost all of these can be replaced by CorelScript.BitmapEffect, but not all. What's wrong with the CorelScript object?
Reply With Quote
  #2  
Old 24-04-2004, 11:33
Alex's Avatar
Alex Alex is offline
Administrator
 
Join Date: Nov 2002
Posts: 1,941
Blog Entries: 4
Default Re: Many CorelScript methods not working in PP11

EffectXXX and ImageXXX (from Adjust, Transform, and Correction menus) commands are obsolete since version 10 I believe. They all are replaced by BitmapEffect command. Even Invert is a bitmap effect now:

Code:
CorelScript.BitmapEffect "Invert", "InvertEffect.V11 "
Which commands do you have problems with?
Reply With Quote
  #3  
Old 24-04-2004, 13:41
feldgendler
Guest
 
Posts: n/a
Default

Oh, I see. I've switched to using CorelScript.BitmapEffect, and it works now. Thanks for the explanation.
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
Transfer shapes from Draw to Paint; Using CorelScript in VB6 DWGraphics Corel Photo-Paint VBA 1 18-08-2004 20:49
Memory leak in PP11 Horst Corel Photo-Paint VBA 0 16-04-2004 09:13
Would you miss CorelScript object? Alex CorelDRAW/Corel DESIGNER VBA 32 04-02-2004 14:59
SaveAs function not working in PP11 Aneurysm Corel Photo-Paint VBA 2 03-03-2003 17:31
Corel Photo-Paint 10/11 ImageBCI, BitmapEffect, etc. BitPusher Corel Photo-Paint VBA 2 29-11-2002 14:38


All times are GMT -5. The time now is 00:57.


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