Specifies the degree of transparency of drawing functions.
imageSetDrawingTransparency(name, percent)
returns void
someImage.setDrawingTransparency(percent)
Name | Type | Required | Default | Description |
---|---|---|---|---|
name | string | Yes | The image on which this operation is performed. | |
percent | numeric | Yes | Percent of transparency, a floating point number in range 0-100 |
CF11+ Create a new image. With the new image write transparent text
TextCharacteristics = { size="20", style="bold", strikethrough="false", underline="false"};
imgObj = imageNew("",152,152,"rgb","149c82");
imgObj.setDrawingTransparency(50);
imgObj.drawText("CFDocs",20,50,TextCharacteristics);
cfimage(action="writeToBrowser", source=imgObj);