I'm a little stuck at the moment and probably just being my blond self, so
I figured I would ask for some clarification.
I'm trying to create a business card from a template. I am reading in the
Template with ImageRead, adding some text to it, the writing it back out
with ImageWrite. Somewhere in the process, the DPI is being changed from
300 to 72. To experiment, I've removed the adding of the text, so all it
does is read in the file and write it back out and I am still only getting
72 DPI on the output so I know that it is either in the read or the write.
Here is the code that I'm using. Thoughts?
<cfset myImage = ImageRead("back.jpg")>
<!--- Draw the text. --->
<cfset attr = StructNew()>
<cfset attr.size = 50>
<cfset attr.style = "bold">
<cfset attr.font = "Verdana">
<cfset ImageSetDrawingColor(myImage,"ffee8f")>
<cfset ImageDrawText(myImage, "TESTING", 490, 288, attr)>
<!--- Write out the new file - This is the back of the card --->
<cfset ImageWrite(myImage, "back_new.jpg", true)>
--
--
online documentation: http://openbd.org/manual/
http://groups.google.com/group/openbd?hl=en
---
You received this message because you are subscribed to the Google Groups "Open
BlueDragon" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.