ChartDirector Ver 3.1 (PHP Edition Edition)

DrawArea.setTransparentColor


Usage

setTransparentColor(c)

Description

Specify a certain color to represent the transparent color when writing the DrawArea to an image file.

Whereas ChartDirector supports alpha transparency coloring, most browsers cannot display alpha transparency images correctly. Instead, most browsers support another kind of transparency - specifying one color to mean transparent. The setTransparentColor method allows you to specify that color.

Note that this method only applies to image formats that support transparent coloring (GIF and PNG). It is ignored for image formats that does not support transparent coloring.

Arguments

ArgumentDefaultDescription
c(Mandatory)The color that is designated as the transparent color.

Return Value

None