Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trycf/cdc9ed3f9dbb3114cee42012d17da4b1 to your computer and use it in GitHub Desktop.
Save trycf/cdc9ed3f9dbb3114cee42012d17da4b1 to your computer and use it in GitHub Desktop.
TryCF Gist
<cfscript>
image=ImageNew("", 50,50);
addBorder=5;
w = 250 + (addBorder *2);
h = 250 + (addBorder *2);;
transparentBorder = ImageNew(source="", width=w, height=h, imageType="argb");
transparentBorder.paste(image2=image, x=addBorder, y=addBorder);
</cfscript>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment