XOOPS API 2.5.11 Beta1
UI v0.5
Réalisé par monxoops.fr
|
Fonctions membres publiques | |
__construct ($handle) | |
doCreate ($width, $height) | |
isTrueColor () | |
alphaBlending ($mode) | |
saveAlpha ($on) | |
allocateColorAlpha ($R, $G=null, $B=null, $A=null) | |
asPalette ($nColors=255, $dither=null, $matchPalette=true) | |
getClosestColorAlpha ($R, $G=null, $B=null, $A=null) | |
getExactColorAlpha ($R, $G=null, $B=null, $A=null) | |
getChannels () | |
copyNoAlpha () | |
asTrueColor () | |
asProgressive () | |
resizeInsideRect ($width, $height, $fit='inside', $scale='down', $alignLeft='center', $alignTop='center', $mergeOpacity=100, $fillColor=null) | |
Fonctions membres publiques hérités de Image | |
__destruct () | |
destroy () | |
getHandle () | |
isValid () | |
releaseHandle () | |
saveToFile ($uri) | |
asString ($format) | |
output ($format) | |
getWidth () | |
getHeight () | |
allocateColor ($R, $G=null, $B=null) | |
isTransparent () | |
getTransparentColor () | |
setTransparentColor ($color) | |
getTransparentColorRGB () | |
getRGBAt ($x, $y) | |
setRGBAt ($x, $y, $color) | |
getColorRGB ($colorIndex) | |
getColorAt ($x, $y) | |
setColorAt ($x, $y, $color) | |
getClosestColor ($R, $G=null, $B=null) | |
getExactColor ($R, $G=null, $B=null) | |
copyTransparencyFrom ($sourceImage, $fill=true) | |
fill ($x, $y, $color) | |
getMask () | |
resize ($width=null, $height=null, $fit='inside', $scale='any') | |
resizeDown ($width=null, $height=null, $fit='inside') | |
resizeUp ($width=null, $height=null, $fit='inside') | |
rotate ($angle, $bgColor=null, $ignoreTransparent=true) | |
merge ($overlay, $left=0, $top=0, $pct=100) | |
resizeCanvas ($width, $height, $pos_x, $pos_y, $bg_color=null, $scale='any', $merge=false) | |
roundCorners ($radius, $color=null, $smoothness=2, $corners=255) | |
applyMask ($mask, $left=0, $top=0) | |
applyFilter ($filter, $arg1=null, $arg2=null, $arg3=null, $arg4=null) | |
applyConvolution ($matrix, $div, $offset) | |
crop ($left=0, $top=0, $width='100%', $height='100%') | |
autoCrop ($margin=0, $rgb_threshold=0, $pixel_cutoff=1, $base_color=null) | |
asNegative () | |
asGrayscale () | |
mirror () | |
unsharp ($amount, $radius, $threshold) | |
flip () | |
correctGamma ($inputGamma, $outputGamma) | |
addNoise ($amount, $type) | |
__call ($name, $args) | |
__toString () | |
copy () | |
copyTo ($dest, $left=0, $top=0) | |
getCanvas () | |
__sleep () | |
__wakeup () | |
Fonctions membres publiques statiques | |
static | create ($width, $height) |
Membres hérités additionnels | |
Fonctions membres protégées hérités de Image | |
writeHeader ($name, $data) | |
getOperation ($name) | |
Attributs protégés hérités de Image | |
$handle = null | |
$handleReleased = false | |
$canvas = null | |
$sdata = null | |
__construct | ( | $handle | ) |
Allocates a color and returns its index
This method accepts either each component as an integer value, or an associative array that holds the color's components in keys 'red', 'green', 'blue', 'alpha'.
mixed | $R | |
int | $G | |
int | $B | |
int | $A |
alphaBlending | ( | $mode | ) |
Sets alpha blending mode via imagealphablending()
bool | $mode |
asProgressive | ( | ) |
Calls imageinterlace() using the current handler
asTrueColor | ( | ) |
(non-PHPdoc)
Réimplémentée à partir de Image.
copyNoAlpha | ( | ) |
|
static |
Factory method that creates a true-color image object
int | $width | |
int | $height |
doCreate | ( | $width, | |
$height | |||
) |
getChannels | ( | ) |
Réimplémentée à partir de Image.
Returns the index of the color that best match the given color components
This method accepts either each component as an integer value, or an associative array that holds the color's components in keys 'red', 'green', 'blue', 'alpha'.
mixed | $R | Red component value or an associative array |
int | $G | Green component |
int | $B | Blue component |
int | $A | Alpha component |
Returns the index of the color that exactly match the given color components
This method accepts either each component as an integer value, or an associative array that holds the color's components in keys 'red', 'green', 'blue', 'alpha'.
mixed | $R | Red component value or an associative array |
int | $G | Green component |
int | $B | Blue component |
int | $A | Alpha component |
isTrueColor | ( | ) |
Returns true if the image is true-color, false otherwise
Réimplémentée à partir de Image.
resizeInsideRect | ( | $width, | |
$height, | |||
$fit = 'inside' , |
|||
$scale = 'down' , |
|||
$alignLeft = 'center' , |
|||
$alignTop = 'center' , |
|||
$mergeOpacity = 100 , |
|||
$fillColor = null |
|||
) |
Resizes the image proportionally inside the given width and height. The returned image will have always the specified width and height, and any space will be filled with the given $fillCollor
int | $width | Exact width in pixels |
int | $height | Exact height in pixels |
string | $fit | 'inside' (default), 'outside' or 'fill' |
string | $scale | 'down' (default), 'up' or 'any' |
mixed | $alignLeft | Left position of the image over the fill space, smart coordinate |
mixed | $alignTop | Top position of the image over the fill space, smart coordinate |
int | $mergeOpacity | The opacity of the image over the fill space |
int | array | $fillColor | RGB color index or array. Background color to fill the resulting image with if it's smaller than the given size. By default (if null), the top left pixel color will be used. |
saveAlpha | ( | $on | ) |
Toggle if alpha channel should be saved with the image via imagesavealpha()
bool | $on |