ImageSetDrawingAlpha()

Sets the current drawing alpha for images. All subsequent graphics operations use the specified alpha.

Requires Extension: Image Extension for Jakarta EE (Lucee 7+)

ImageSetDrawingAlpha( image=any, alpha=number );

Returns: void

Argument Description
image
any, required

The image on which this operation is performed.

Alias: name

alpha
number, required

a floating point number in range 0-1

Examples

	img=imageNew("", 250, 250, "RGB", "a29bfe");

imagesetDrawingAlpha(img ,0.3); imagedrawRect(img, 50, 50, 50, 50);
imagesetDrawingAlpha(img ,0.6); imagedrawRect(img, 75, 75, 75, 75);
imagesetDrawingAlpha(img ,1); imagedrawRect(img, 100, 100, 100, 100);
writeOutput(img);

See also