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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

getdocumentwidth - weird values

Status
Not open for further replies.

devink

Programmer
Jan 22, 2004
1
GB
Hi,

Firstly, as this is my first post...hello! I hope onne day to add value to this forum, but right now, I'm looking for help!

Does anyone know why, when I run this script on a 100 x 100 pixel image, it
returns a value of 2...

dwidth = .GetDocumentWidth()
dheight = .GetDocumentHeight()



All the best,

Steve
 
CorelScript Functions
Corel Photopaint V10.427
.getdocumentwidth()
.getdocumentheight()

The above functions in Corel Photopaint 10 do not retrieve accurate values. They work OK in other versions. I strongly suspect that the CorelScript interpreter for version 10 has a bug. I have found no patches. This problem makes batch resampling of different sized images while retaining the aspect ratio impossible.

Disclaimer:

I do not know how widespread this problem is or if it is actually the fault of Corel and make this posting without prejudice to Corel Corporation.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top