I'm having trouble with the ImageCopy() function. I am getting the
following error:
"Problem occurred while parsing: The function imagecopy requires at
least 5 argument(s)."
System:
Ubuntu 10.04 server
Openbd 1.4
Apache Tomcat/6.0.29
Code:
if ( FileExists(theImage) ) {
thisImage = ImageRead(theImage);
theRatio = 1;//set default
if ( thisImage.width GTE thisImage.height ) {
theRatio = val(thisImage.height) / val(thisImage.width);
if ( FindNoCase("bluedragon",server.coldfusion.productname) ) {
imageParams.image = thisImage;//bd seems to use the arg
image
}else{
imageParams.name = thisImage;//cf seems to use the arg
name
}
imageParams.x = 0;
imageParams.y = 0;
imageParams.width = val(maxSize);
imageParams.height = (val(maxSize) * theRatio);
//newImage = ImageCopy(ArgumentCollection=imageParams);
//dump(IsImage(thisImage)); returns true in my example
}
}
These are my reference for ImageCopy:
http://www.openbluedragon.org/manual/?/function/imagecopy
http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=functions_h-im_09.html#5178021
Thanks,
Stan
--
Open BlueDragon Public Mailing List
http://www.openbluedragon.org/ http://twitter.com/OpenBlueDragon
official manual: http://www.openbluedragon.org/manual/
Ready2Run CFML http://www.openbluedragon.org/openbdjam/
mailing list - http://groups.google.com/group/openbd?hl=en