Pete,
It's only on my server at work for now, but you can dl the
trial tags from efflare.com and have at it.
This creates the before and after images 1a.jpg and 2a.jpg
<cfx_imageflare source="
b = Bitmap()
f = Font( 'Arial', 12 )
b.size( f.getdimensions('Before') )
b.fill( Color('white') )
b.text( 'Before', 0, b.height, f, Color('grey') )
b.save( '#expandpath('1a.jpg')#' )
b = Bitmap()
f = Font( 'Arial', 12 )
b.size( f.getdimensions('Before') )
b.fill( Color('white') )
b.text( 'After', 0, b.height, f, Color('black') )
b.save( '#expandpath('2a.jpg')#' )
">
This creates the before image with the before text pasted
below the picture
<cfx_imageflare source="
b1 = Bitmap('#expandpath('1.jpg')#')
b2 = Bitmap('#expandpath('1a.jpg')#')
gapsize = 5
fillcolor = Color('white')
b3 = Bitmap(b1.width,b1.height+b2.height)
b3.fill(fillcolor)
b3.paste(b1)
b3.paste(b2,0,b1.height)
b3.save('#expandpath('1.jpg')#')
">
This creates the after image with the after text pasted
below the picture
<cfx_imageflare source="
b1 = Bitmap('#expandpath('2.jpg')#')
b2 = Bitmap('#expandpath('2a.jpg')#')
gapsize = 5
fillcolor = Color('white')
b3 = Bitmap(b1.width,b1.height+b2.height)
b3.fill(fillcolor)
b3.paste(b1)
b3.paste(b2,0,b1.height)
b3.save('#expandpath('2.jpg')#')
">
This combines the before and after images side by side with
a 5 pixel gap between
<cfx_imageflare source="
b1 = Bitmap('#expandpath('1.jpg')#')
b2 = Bitmap('#expandpath('2.jpg')#')
gapsize = 5
fillcolor = Color('white')
b3 = Bitmap(b1.width+b2.width+gapsize,b1.height)
b3.fill(fillcolor)
b3.paste(b1)
b3.paste(b2,b1.width+gapsize,0)
b3.save('#expandpath('3.jpg')#')
">
-----Original Message-----
From: Pete [mailto:[EMAIL PROTECTED]
Sent: Saturday, May 05, 2007 4:46 PM
To: CF-Talk
Subject: RE: Combining Images
Hi there
I'm very interested in what you are doing especially with
before and after shots.
Do you have a URL, I would very much like to browse to your
site and have a look.
Kind regards
Pete
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create Web Applications With ColdFusion MX7 & Flex 2.
Build powerful, scalable RIAs. Free Trial
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJS
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:277100
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4