|
Mailing Lists
|
Home /
Groups /
ColdFusion Talk (CF-Talk)
CFimage to draw a triangle
Could someone show me the proper way to draw a filled triangle usingTerry Troxel 12/25/11 10:34 A <cfscript>andy matthews 12/25/11 12:59 P Could someone show me the proper way to draw a filled triangle using CFimage? Terry <cfscript> t = ImageNew('', 300,300,'argb'); ImageSetAntialiasing(t); ImageSetDrawingColor(t,'000000'); ImageDrawLines(t,[0,300,0],[0,150,300],'yes','yes'); ImageWrite(t,'/Users/andy/Sites/triangle.png'); </cfscript> <img src="/triangle.png" /> Could someone show me the proper way to draw a filled triangle using CFimage? Terry
|
June 20, 2013
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||