WideImage 1.0 branch (discontinued)

WideImage Wiki : wiTrueColorImageMethods

MainPage :: Categories :: PageIndex :: RecentChanges :: RecentlyCommented :: Login/Register
Support This Project SourceForge.net Logo
Important notice: the development of WideImage 1.0 branch is discontinued. Please visit http://wideimage.sourceforge.net for the new version of library and documentation.
This web site will remain accessible to serve as documentation for the old versions of the library. For help on migration, please refer to the migration guide.

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.0362 seconds