Exemples
Gmagick::addimage
Gmagick
PHP Manual
La classe Gmagick
Introduction
Description de la classe.
Synopsis de la classe
Gmagick
{
/* Méthodes */
public
void
addimage
(
Gmagick
$Gmagick
)
public
void
addnoiseimage
(
int
$NOISE
)
public
void
annotateimage
(
GmagickDraw
$GmagickDraw
,
int
$x
,
int
$y
,
float
$angle
,
string
$text
)
public
void
blurimage
(
float
$radius
,
float
$sigma
)
public
void
borderimage
(
GmagickPixel
$color
,
int
$width
,
int
$height
)
public
void
charcoalimage
(
float
$radius
,
float
$sigma
)
public
void
chopimage
(
int
$width
,
int
$height
,
int
$x
,
int
$y
)
public
void
clear
(
void
)
public
void
commentimage
(
string
$comment
)
public
void
compositeimage
(
Gmagick
$source
,
int
$COMPOSE
,
int
$x
,
int
$y
)
__construct
([
string
$filename
] )
public
void
cropimage
(
int
$width
,
int
$height
,
int
$x
,
int
$y
)
public
void
cropthumbnailimage
(
int
$width
,
int
$height
)
public
void
current
(
void
)
public
void
cyclecolormapimage
(
float
$displace
)
public
void
deconstructimages
(
void
)
public
void
despeckleimage
(
void
)
public
void
destroy
(
void
)
public
void
drawimage
(
GmagickDraw
$GmagickDraw
)
public
void
edgeimage
(
float
$radius
)
public
void
embossimage
(
float
$radius
,
float
$sigma
)
public
void
enhanceimage
(
void
)
public
void
equalizeimage
(
void
)
public
void
flipimage
(
void
)
public
void
flopimage
(
void
)
public
void
frameimage
(
GmagickPixel
$color
,
int
$width
,
int
$height
,
int
$inner_bevel
,
int
$outer_bevel
)
public
void
gammaimage
(
float
$gamma
)
public
void
getcopyright
(
void
)
public
void
getfilename
(
void
)
public
void
getimagebackgroundcolor
(
void
)
public
void
getimageblueprimary
(
void
)
public
void
getimagebordercolor
(
void
)
public
void
getimagechanneldepth
(
void
)
public
void
getimagecolors
(
void
)
public
void
getimagecolorspace
(
void
)
public
void
getimagecompose
(
void
)
public
void
getimagedelay
(
void
)
public
void
getimagedepth
(
void
)
public
void
getimagedispose
(
void
)
public
void
getimageextrema
(
void
)
public
void
getimagefilename
(
void
)
public
void
getimageformat
(
void
)
public
void
getimagegamma
(
void
)
public
void
getimagegreenprimary
(
void
)
public
void
getimageheight
(
void
)
public
void
getimagehistogram
(
void
)
public
void
getimageindex
(
void
)
public
void
getimageinterlacescheme
(
void
)
public
void
getimageiterations
(
void
)
public
void
getimagematte
(
void
)
public
void
getimagemattecolor
(
void
)
public
void
getimageprofile
(
void
)
public
void
getimageredprimary
(
void
)
public
void
getimagerenderingintent
(
void
)
public
void
getimageresolution
(
void
)
public
void
getimagescene
(
void
)
public
void
getimagesignature
(
void
)
public
void
getimagetype
(
void
)
public
void
getimageunits
(
void
)
public
void
getimagewhitepoint
(
void
)
public
void
getimagewidth
(
void
)
public
void
getpackagename
(
void
)
public
void
getquantumdepth
(
void
)
public
void
getreleasedate
(
void
)
public
void
getsamplingfactors
(
void
)
public
void
getsize
(
void
)
public
void
getversion
(
void
)
public
void
hasnextimage
(
void
)
public
void
haspreviousimage
(
void
)
public
void
implodeimage
(
float
$radius
)
public
void
labelimage
(
string
$label
)
public
void
levelimage
(
float
$blackPoint
,
float
$gamma
,
float
$whitePoint
[,
int
$channel
] )
public
void
magnifyimage
(
void
)
public
void
mapimage
(
gmagick
$gmagick
,
int
$dither
)
public
void
medianfilterimage
(
float
$radius
)
public
void
minifyimage
(
void
)
public
void
modulateimage
(
float
$brightness
,
float
$saturation
,
float
$hue
)
public
void
motionblurimage
(
float
$radius
,
float
$sigma
,
float
$angle
)
public
void
newimage
(
int
$width
,
int
$height
,
mixed
$background
,
string
$format
)
public
void
nextimage
(
void
)
public
void
normalizeimage
([
int
$channel
] )
public
void
oilpaintimage
(
float
$radius
)
public
void
previousimage
(
void
)
public
void
profileimage
(
string
$name
,
string
$profile
)
public
void
quantizeimage
(
int
$numColors
,
int
$colorspace
,
int
$treeDepth
,
bool
$dither
,
bool
$measureError
)
public
void
quantizeimages
(
int
$numColors
,
int
$colorspace
,
int
$treeDepth
,
bool
$dither
,
bool
$measureError
)
public
void
queryfontmetrics
(
void
)
public
void
queryfonts
(
void
)
public
void
queryformats
(
string
$pattern
)
public
void
radialblurimage
(
float
$angle
[,
int
$channel
] )
public
void
raiseimage
(
int
$width
,
int
$height
,
int
$x
,
int
$y
,
bool
$raise
)
public
void
read
(
string
$filename
)
public
void
readimage
(
string
$filename
)
public
void
readimageblob
(
string
$imageContents
[,
string
$filename
] )
public
void
readimagefile
(
string
$fp
)
public
void
reducenoiseimage
(
float
$radius
)
public
void
removeimage
(
void
)
public
void
removeimageprofile
(
string
$name
)
public
void
resampleimage
(
float
$xResolution
,
float
$yResolution
,
int
$filter
,
float
$blur
)
public
void
resizeimage
(
int
$width
,
int
$height
,
int
$filter
,
float
$blur
[,
bool
$fit
] )
public
void
rollimage
(
int
$x
,
int
$y
)
public
void
rotateimage
(
mixed
$color
,
float
$degrees
)
public
void
scaleimage
(
int
$width
,
int
$height
)
public
void
separateimagechannel
(
int
$channel
)
public
void
setfilename
(
string
$filename
)
public
void
setimagebackgroundcolor
(
GmagickPixel
$color
)
public
void
setimageblueprimary
(
float
$x
,
float
$y
)
public
void
setimagebordercolor
(
GmagickPixel
$color
)
public
void
setimagechanneldepth
(
int
$channel
,
int
$depth
)
public
void
setimagecolorspace
(
int
$colorspace
)
public
void
setimagecompose
(
int
$composite
)
public
void
setimagedelay
(
int
$delay
)
public
void
setimagedepth
(
float
$depth
)
public
void
setimagedispose
(
int
$disposeType
)
public
void
setimagefilename
(
string
$filename
)
public
void
setimageformat
(
string
$imageFormat
)
public
void
setimagegamma
(
float
$gamma
)
public
void
setimagegreenprimary
(
float
$x
,
float
$y
)
public
void
setimageindex
(
int
$index
)
public
void
setimageinterlacescheme
(
int
$interlace
)
public
void
setimageiterations
(
int
$iterations
)
public
void
setimageprofile
(
string
$name
,
string
$profile
)
public
void
setimageredprimary
(
float
$x
,
float
$y
)
public
void
setimagerenderingintent
(
int
$rendering_intent
)
public
void
setimageresolution
(
float
$xResolution
,
float
$yResolution
)
public
void
setimagescene
(
string
$scene
)
public
void
setimagetype
(
string
$imgType
)
public
void
setimageunits
(
int
$resolution
)
public
void
setimagewhitepoint
(
float
$x
,
float
$y
)
public
void
setsamplingfactors
(
array
$factors
)
public
void
setsize
(
int
$columns
,
int
$rows
)
public
void
shearimage
(
mixed
$color
,
float
$xShear
,
float
$yShear
)
public
void
solarizeimage
(
float
$threshold
)
public
void
spreadimage
(
float
$radius
)
public
void
stripimage
(
void
)
public
void
swirlimage
(
float
$degrees
)
public
void
thumbnailimage
(
int
$width
,
int
$height
)
public
void
trimimage
(
float
$fuzz
)
public
void
write
(
string
$filename
)
public
void
writeimage
(
string
$filename
)
}
Sommaire
Gmagick::addimage
— Ajoute une nouvelle image à la liste des images de l'objet Gmagick
Gmagick::addnoiseimage
— Ajoute du bruit aléatoirement dans l'image
Gmagick::annotateimage
— Annote une image avec du texte
Gmagick::blurimage
— Ajoute un filtre flou à l'image
Gmagick::borderimage
— Ajoute une bordure à l'image
Gmagick::charcoalimage
— Simule un dessin au fusain
Gmagick::chopimage
— Supprime une région de l'image
Gmagick::clear
— Efface toutes les ressources associées à l'objet Gmagick
Gmagick::commentimage
— Ajoute un commentaire à l'image
Gmagick::compositeimage
— Assemble 2 images
Gmagick::__construct
— Le constructeur Gmagick
Gmagick::cropimage
— Extrait une portion d'une image
Gmagick::cropthumbnailimage
— Crée une miniature recadrée
Gmagick::current
— Le contexte courante
Gmagick::cyclecolormapimage
— Déplace la carte des couleurs d'une image
Gmagick::deconstructimages
— Retourne les pixels différents entre des images
Gmagick::despeckleimage
— Le but de despeckleimage
Gmagick::destroy
— Le but de la méthode destroy
Gmagick::drawimage
— Envoi l'objet GmagickDraw dans l'image courante
Gmagick::edgeimage
— Améliore les bords intérieurs de l'image
Gmagick::embossimage
— Retourne une image en niveau de gris avec un effet à 3 dimensions
Gmagick::enhanceimage
— Améliore la qualité d'une image contenant du bruit
Gmagick::equalizeimage
— Égalise l'histogramme de l'image
Gmagick::flipimage
— Crée une image miroir verticale
Gmagick::flopimage
— Le but de la méthode flopimage
Gmagick::frameimage
— Ajoute une bordure afin de simuler un effet 3D
Gmagick::gammaimage
— Corrige le gamma d'une image
Gmagick::getcopyright
— Retourne le copyright de l'API GraphicsMagick
Gmagick::getfilename
— Retourne le nom du fichier associé avec une séquence d'image
Gmagick::getimagebackgroundcolor
— Retourne la couleur d'arrière plan de l'image
Gmagick::getimageblueprimary
— Retourne le point bleu primaire chromatique
Gmagick::getimagebordercolor
— Retourne la couleur du bord de l'image
Gmagick::getimagechanneldepth
— Récupère la profondeur d'un canal particulier de l'image
Gmagick::getimagecolors
— Retourne la couleur de l'indice de la carte des couleurs spécifiée
Gmagick::getimagecolorspace
— Récupère l'espace colorimétrique de l'image
Gmagick::getimagecompose
— Retourne l'opérateur de composition associé avec l'image
Gmagick::getimagedelay
— Récupère le délai de l'image
Gmagick::getimagedepth
— Récupère la profondeur de l'image
Gmagick::getimagedispose
— Récupère la méthode de disposition de l'image
Gmagick::getimageextrema
— Récupère les extrémités de l'image
Gmagick::getimagefilename
— Récupère le nom du fichier d'une image particulière dans une séquence
Gmagick::getimageformat
— Récupère le format d'une image particulière dans une séquence
Gmagick::getimagegamma
— Récupère le gamma de l'image
Gmagick::getimagegreenprimary
— Récupère le point chromatique primaire vert
Gmagick::getimageheight
— Récupère la hauteur de l'image
Gmagick::getimagehistogram
— Récupère l'histogramme de l'image
Gmagick::getimageindex
— Récupère l'indice de l'image active courante
Gmagick::getimageinterlacescheme
— Récupère le schéma d'entrelacement de l'image
Gmagick::getimageiterations
— Récupère les itérations de l'image
Gmagick::getimagematte
— Vérifie si l'image a un canal mate
Gmagick::getimagemattecolor
— Récupère la couleur mate de l'image
Gmagick::getimageprofile
— Récupère le nom du profile de l'image
Gmagick::getimageredprimary
— Récupère le point chromatique primaire rouge
Gmagick::getimagerenderingintent
— Récupère l'image de rendu
Gmagick::getimageresolution
— Récupère la résolution de l'image
Gmagick::getimagescene
— Récupère la scène de l'image
Gmagick::getimagesignature
— Génère la signature SHA-256 de l'image
Gmagick::getimagetype
— Récupère le type potentiel d'une image
Gmagick::getimageunits
— Récupère les unités utilisées pour la résolution de l'image
Gmagick::getimagewhitepoint
— Récupère le point chromatique blanc
Gmagick::getimagewidth
— Récupère la largeur de l'image
Gmagick::getpackagename
— Récupère le nom du paquet GraphicsMagick
Gmagick::getquantumdepth
— Récupère la profondeur du quantum Gmagick
Gmagick::getreleasedate
— Récupère la date de sortie de la version courante de GraphicsMagick
Gmagick::getsamplingfactors
— Récupère le facteur d'échantillonnage horizontal et vertical
Gmagick::getsize
— Récupère la taille associée avec l'objet Gmagick
Gmagick::getversion
— Récupère la version de l'API GraphicsMagick
Gmagick::hasnextimage
— Vérifie si l'objet contient au moins une autre image
Gmagick::haspreviousimage
— Vérifie si l'objet contient une image précédente
Gmagick::implodeimage
— Crée une image à partir d'une copie
Gmagick::labelimage
— Ajoute un libellé à une image
Gmagick::levelimage
— Ajuste les niveaux d'une image
Gmagick::magnifyimage
— Retaille par 2 une image en conservant les proportions
Gmagick::mapimage
— Remplace les couleurs d'une image avec les couleurs les plus proches d'une image de référence
Gmagick::medianfilterimage
— Applique un filtre digital
Gmagick::minifyimage
— Réduit une image de moitié en gardant les proportions
Gmagick::modulateimage
— Contrôle la luminosité, la saturation et la teinte
Gmagick::motionblurimage
— Simulates motion blur
Gmagick::newimage
— Creates a new image
Gmagick::nextimage
— Moves to the next image
Gmagick::normalizeimage
— Enhances the contrast of a color image
Gmagick::oilpaintimage
— Simulates an oil painting
Gmagick::previousimage
— Move to the previous image in the object
Gmagick::profileimage
— Adds or removes a profile from an image
Gmagick::quantizeimage
— Analyzes the colors within a reference image
Gmagick::quantizeimages
— The quantizeimages purpose
Gmagick::queryfontmetrics
— Returns an array representing the font metrics
Gmagick::queryfonts
— Returns the configured fonts
Gmagick::queryformats
— Returns formats supported by Gmagick.
Gmagick::radialblurimage
— Radial blurs an image
Gmagick::raiseimage
— Creates a simulated 3d button-like effect
Gmagick::read
— Reads image from filename
Gmagick::readimage
— Reads image from filename
Gmagick::readimageblob
— Reads image from a binary string
Gmagick::readimagefile
— The readimagefile purpose
Gmagick::reducenoiseimage
— Smooths the contours of an image
Gmagick::removeimage
— Removes an image from the image list
Gmagick::removeimageprofile
— Removes the named image profile and returns it
Gmagick::resampleimage
— Resample image to desired resolution
Gmagick::resizeimage
— Scales an image
Gmagick::rollimage
— Offsets an image
Gmagick::rotateimage
— Rotates an image
Gmagick::scaleimage
— Scales the size of an image
Gmagick::separateimagechannel
— Separates a channel from the image
Gmagick::setfilename
— Sets the filename before you read or write the image
Gmagick::setimagebackgroundcolor
— Sets the image background color.
Gmagick::setimageblueprimary
— Sets the image chromaticity blue primary point.
Gmagick::setimagebordercolor
— Sets the image border color.
Gmagick::setimagechanneldepth
— Sets the depth of a particular image channel
Gmagick::setimagecolorspace
— Sets the image colorspace
Gmagick::setimagecompose
— Sets the image composite operator
Gmagick::setimagedelay
— Sets the image delay
Gmagick::setimagedepth
— Sets the image depth
Gmagick::setimagedispose
— Sets the image disposal method
Gmagick::setimagefilename
— Sets the filename of a particular image in a sequence
Gmagick::setimageformat
— Sets the format of a particular image
Gmagick::setimagegamma
— Sets the image gamma
Gmagick::setimagegreenprimary
— TSets the image chromaticity green primary point.
Gmagick::setimageindex
— Set the iterator to the position in the image list specified with the index parameter
Gmagick::setimageinterlacescheme
— Sets the interlace scheme of the image.
Gmagick::setimageiterations
— Sets the image iterations.
Gmagick::setimageprofile
— Adds a named profile to the Gmagick object
Gmagick::setimageredprimary
— Sets the image chromaticity red primary point.
Gmagick::setimagerenderingintent
— Sets the image rendering intent
Gmagick::setimageresolution
— Sets the image resolution
Gmagick::setimagescene
— Sets the image scene
Gmagick::setimagetype
— Sets the image type
Gmagick::setimageunits
— Sets the image units of resolution.
Gmagick::setimagewhitepoint
— Sets the image chromaticity white point.
Gmagick::setsamplingfactors
— Sets the image sampling factors.
Gmagick::setsize
— Sets the size of the Gmagick object
Gmagick::shearimage
— Creating a parallelogram
Gmagick::solarizeimage
— Applies a solarizing effect to the image
Gmagick::spreadimage
— Randomly displaces each pixel in a block
Gmagick::stripimage
— Strips an image of all profiles and comments
Gmagick::swirlimage
— Swirls the pixels about the center of the image
Gmagick::thumbnailimage
— Changes the size of an image
Gmagick::trimimage
— Remove edges from the image
Gmagick::write
— Writes an image to the specified filename
Gmagick::writeimage
— Writes an image to the specified filename
Exemples
Gmagick::addimage
Gmagick
PHP Manual