XOOPS API 2.5.11 Beta1  UI v0.5
Réalisé par monxoops.fr
Référence de la classe TrueColorImage
+ Graphe d'héritage de TrueColorImage:
+ Graphe de collaboration de TrueColorImage:

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
 

Documentation des constructeurs et destructeur

◆ __construct()

__construct (   $handle)

Creates the object

Paramètres
resource$handle

Réimplémentée à partir de Image.

Documentation des fonctions membres

◆ allocateColorAlpha()

allocateColorAlpha (   $R,
  $G = null,
  $B = null,
  $A = null 
)

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'.

Paramètres
mixed$R
int$G
int$B
int$A
Renvoie
int

◆ alphaBlending()

alphaBlending (   $mode)

Sets alpha blending mode via imagealphablending()

Paramètres
bool$mode
Renvoie
bool

◆ asPalette()

asPalette (   $nColors = 255,
  $dither = null,
  $matchPalette = true 
)
Voir également
\WideImage\ImageasPalette($nColors, $dither, $matchPalette)

Réimplémentée à partir de Image.

◆ asProgressive()

asProgressive ( )

Calls imageinterlace() using the current handler

Voir également
\WideImage\ImageasTrueColor()
Renvoie
TrueColorImage A copy of the image, with imageinterlace() applied

◆ asTrueColor()

asTrueColor ( )

(non-PHPdoc)

Voir également
\WideImage\ImageasTrueColor()
Renvoie
TrueColorImage

Réimplémentée à partir de Image.

◆ copyNoAlpha()

copyNoAlpha ( )

(non-PHPdoc)

Voir également
\WideImage\ImagecopyNoAlpha()

Réimplémentée à partir de Image.

◆ create()

static create (   $width,
  $height 
)
static

Factory method that creates a true-color image object

Paramètres
int$width
int$height
Renvoie
\WideImage\TrueColorImage
+ Voici le graphe des appelants de cette fonction :

◆ doCreate()

doCreate (   $width,
  $height 
)

◆ getChannels()

getChannels ( )
Voir également
\WideImage\ImagegetChannels()

Réimplémentée à partir de Image.

◆ getClosestColorAlpha()

getClosestColorAlpha (   $R,
  $G = null,
  $B = null,
  $A = null 
)

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'.

Paramètres
mixed$RRed component value or an associative array
int$GGreen component
int$BBlue component
int$AAlpha component
Renvoie
int The color index

◆ getExactColorAlpha()

getExactColorAlpha (   $R,
  $G = null,
  $B = null,
  $A = null 
)

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'.

Paramètres
mixed$RRed component value or an associative array
int$GGreen component
int$BBlue component
int$AAlpha component
Renvoie
int The color index

◆ isTrueColor()

isTrueColor ( )

Returns true if the image is true-color, false otherwise

Renvoie
bool

Réimplémentée à partir de Image.

◆ resizeInsideRect()

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

Paramètres
int$widthExact width in pixels
int$heightExact height in pixels
string$fit'inside' (default), 'outside' or 'fill'
string$scale'down' (default), 'up' or 'any'
mixed$alignLeftLeft position of the image over the fill space, smart coordinate
mixed$alignTopTop position of the image over the fill space, smart coordinate
int$mergeOpacityThe opacity of the image over the fill space
int | array$fillColorRGB 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.
Renvoie
TrueColorImage A new, resized image

◆ saveAlpha()

saveAlpha (   $on)

Toggle if alpha channel should be saved with the image via imagesavealpha()

Paramètres
bool$on
Renvoie
bool

La documentation de cette classe a été générée à partir du fichier suivant :