demiancurran
Programmer
I am attempting to place a variable [value] in a ColdFusion tag called imageCFC. For some reason it is rejecting the value and giving me an error.
Below is the code I am using followed by the error I am receiving.
Thanks so much for any help I can get with this. I have tried a number of things and cannot seem to crunch this one.
Here is the error I am getting...
The selected method drawImage was not found.
Either there are no methods with the specified method name and argument types, or the method drawImage is overloaded with arguments types that ColdFusion can't decipher reliably. If this is a Java object and you verified that the method exists, you may need to use the javacast function to reduce ambiguity.
The error occurred in D:\XXXXX\XXXXXXXXXXX\image.cfc: line 886
884 : op.init(at, rh);
885 :
886 : gfx.drawImage(wmImage, op, arguments.placeAtX, arguments.placeAtY);
887 : gfx.dispose();
888 :
Below is the code I am using followed by the error I am receiving.
Thanks so much for any help I can get with this. I have tried a number of things and cannot seem to crunch this one.
Code:
<CFX_ImageInfoSE FILENAME="#myfilepath##uploadedImage#">
<!--- Setting the variable described above [value] --->
<cfset wid = ImageInfoSE.width-10>
<!--- Invoke image.cfc component --->
<cfset imageCFC = createObject("component","image") />
<!--- scaleX image to 500px wide and add watermark --->
<cfset scaleX500 = imageCFC.scaleX("", "#myfilepath##uploadedImage#", "", 500)>
<!--- Here I am trying to call the variable set above #wid# --->
<cfset scaleX500_2_watermark = imageCFC.watermark(scaleX500.img,"" ,"","#myfilepath#mark.png",0.9,#wid#, 50,"#myfilepath##uploadedImage#")>
Here is the error I am getting...
The selected method drawImage was not found.
Either there are no methods with the specified method name and argument types, or the method drawImage is overloaded with arguments types that ColdFusion can't decipher reliably. If this is a Java object and you verified that the method exists, you may need to use the javacast function to reduce ambiguity.
The error occurred in D:\XXXXX\XXXXXXXXXXX\image.cfc: line 886
884 : op.init(at, rh);
885 :
886 : gfx.drawImage(wmImage, op, arguments.placeAtX, arguments.placeAtY);
887 : gfx.dispose();
888 :