ImageSetDrawingTransparency

Specifies the degree of transparency of drawing functions.

ImageSetDrawingTransparency( image [, percent ] )

Returns: void

Argument Description Default
image
any, required

The image on which this operation is performed.

Alias: name

percent
number, optional

Percent of transparency, a floating point number in range 0-100

1

Examples

TextCharacteristics = { size="20", style="bold", strikethrough="false", underline="false"};
  imgObj = imageNew("",152,152,"rgb","149c82");
  imgObj.setDrawingTransparency(50);
  imgObj.drawText("Lucee",20,50,TextCharacteristics);
  cfimage(action="writeToBrowser", source=imgObj);

See also