Created
September 1, 2020 12:07
-
-
Save trycf/cdc9ed3f9dbb3114cee42012d17da4b1 to your computer and use it in GitHub Desktop.
TryCF Gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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