wiTrueColorImage methods
wiTrueColorImage extends
wiImage.
Creating
static create($width, $height)
Creates a wiTrueColorImage object with the given size.
Image information
isTrueColor()
Returns true.
Colors
alphaBlending($mode)
Sets alphablending.
saveAlpha($on)
Sets savealpha.
allocateColorAlpha($R, $G = null, $B = null, $A = null)
Allocates a color with alpha information. $R can be a RGBA array.
getClosestColorAlpha($R, $G = null, $B = null, $A = null)
Returns the color that is closest to the given RGBA values.
getExactColorAlpha($R, $G = null, $B = null, $A = null)
Returns the color that exactly matches the given RGBA values.
Replication
asPalette($nColors = 255, $dither = null, $matchPalette = true)
Returns a copy of itself, converted to wiPaletteImage. See
asPalette operation for more details.
function copyNoAlpha()
Returns the image without alpha channel.
CategoryDocApi
There are no comments on this page. [Add comment]