Hello,
I am writing a function to paste some smaller images into a larger image.
I am getting an "*attribute passed in was not of type image*" error using
this line:
<cfset bit = ImagePaste( name=imgFull, name2=imgCurrent, x=intX, y=intY)>
However,
#isImage(imgCurrent)#
#isImage(imgFull)#
both return YES.
intX and intY are both integer values.
cfdumps of the img variables return:
imgCurrent:
imagecolormodelstructpixel_size24transparency1height382size12source
d:\apache\webapps\root\tmp\sd\crop-sd-1.pngtype5width797
imagecolormodelstructpixel_size24transparency1height1600size12source
d:\apache\webapps\root\tmp\sd\fullmap.pngtype5width4800
The img variables are set using, for example, <cfset imgCurrent =
ImageRead("d:\apache\webapps\root\tmp\sd\#dirSD.name#")>
I've tried the code with both PNG and JPG files, and get the same error
message.
Am I missing an obvious error on my part, or can anyone enlighten me on
what I'm doing wrong here? Much appreciated.
cheers,
-ben
--
online documentation: http://openbd.org/manual/
http://groups.google.com/group/openbd?hl=en