ImageSetDrawingTransparency()
Specifies the degree of transparency of drawing functions.
Requires Extension: Image Extension for Jakarta EE (Lucee 7+)
ImageSetDrawingTransparency( image=any, percent=number );
Returns: void
| Argument | Description | Default |
|---|---|---|
|
image
any,
required
|
edit
The image on which this operation is performed. Alias: name |
|
|
percent
number,
optional
|
edit
Percent of transparency, a floating point number in range 0-100 |
1 |
Examples
edit 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
- Image manipulation
- image.setDrawingTransparency()
- Search Issue Tracker open_in_new
- Search Lucee Test Cases open_in_new (good for further, detailed examples)