WideImage logo

WideImage Wiki : wiTrueColorImageMethods

MainPage :: Categories :: PageIndex :: RecentChanges :: RecentlyCommented :: Login/Register
SourceForge.net Logo

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]

WideImage - an Object-Oriented PHP Image Library for Image manipulation
Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by Wikka Wakka Wiki 1.1.6.2
Page was generated in 0.1878 seconds