例
Gmagick::addimage
Gmagick
PHP Manual
Gmagick クラス
導入
Description of the class.
クラス概要
Gmagick
{
/* メソッド */
public
Gmagick
addimage
(
Gmagick
$Gmagick
)
public
Gmagick
addnoiseimage
(
int
$NOISE
)
public
Gmagick
annotateimage
(
GmagickDraw
$GmagickDraw
,
float
$x
,
float
$y
,
float
$angle
,
string
$text
)
public
Gmagick
blurimage
(
float
$radius
,
float
$sigma
[,
int
$channel
] )
public
Gmagick
borderimage
(
GmagickPixel
$color
,
int
$width
,
int
$height
)
public
Gmagick
charcoalimage
(
float
$radius
,
float
$sigma
)
public
Gmagick
chopimage
(
int
$width
,
int
$height
,
int
$x
,
int
$y
)
public
Gmagick
clear
(
void
)
public
Gmagick
commentimage
(
string
$comment
)
public
Gmagick
compositeimage
(
Gmagick
$source
,
int
$COMPOSE
,
int
$x
,
int
$y
)
__construct
([
string
$filename
] )
public
Gmagick
cropimage
(
int
$width
,
int
$height
,
int
$x
,
int
$y
)
public
Gmagick
cropthumbnailimage
(
int
$width
,
int
$height
)
public
Gmagick
current
(
void
)
public
Gmagick
cyclecolormapimage
(
int
$displace
)
public
void
deconstructimages
(
void
)
public
Gmagick
despeckleimage
(
void
)
public
Gmagick
destroy
(
void
)
public
Gmagick
drawimage
(
GmagickDraw
$GmagickDraw
)
public
Gmagick
edgeimage
(
float
$radius
)
public
Gmagick
embossimage
(
float
$radius
,
float
$sigma
)
public
Gmagick
enhanceimage
(
void
)
public
Gmagick
equalizeimage
(
void
)
public
Gmagick
flipimage
(
void
)
public
Gmagick
flopimage
(
void
)
public
Gmagick
frameimage
(
GmagickPixel
$color
,
int
$width
,
int
$height
,
int
$inner_bevel
,
int
$outer_bevel
)
public
Gmagick
gammaimage
(
float
$gamma
)
public
string
getcopyright
(
void
)
public
string
getfilename
(
void
)
public
void
getimagebackgroundcolor
(
void
)
public
array
getimageblueprimary
(
void
)
public
void
getimagebordercolor
(
void
)
public
int
getimagechanneldepth
(
int
$channel_type
)
public
int
getimagecolors
(
void
)
public
int
getimagecolorspace
(
void
)
public
int
getimagecompose
(
void
)
public
int
getimagedelay
(
void
)
public
int
getimagedepth
(
void
)
public
int
getimagedispose
(
void
)
public
array
getimageextrema
(
void
)
public
string
getimagefilename
(
void
)
public
string
getimageformat
(
void
)
public
float
getimagegamma
(
void
)
public
array
getimagegreenprimary
(
void
)
public
int
getimageheight
(
void
)
public
array
getimagehistogram
(
void
)
public
int
getimageindex
(
void
)
public
int
getimageinterlacescheme
(
void
)
public
int
getimageiterations
(
void
)
public
int
getimagematte
(
void
)
public
void
getimagemattecolor
(
void
)
public
string
getimageprofile
(
string
$name
)
public
array
getimageredprimary
(
void
)
public
int
getimagerenderingintent
(
void
)
public
array
getimageresolution
(
void
)
public
int
getimagescene
(
void
)
public
string
getimagesignature
(
void
)
public
int
getimagetype
(
void
)
public
int
getimageunits
(
void
)
public
array
getimagewhitepoint
(
void
)
public
int
getimagewidth
(
void
)
public
string
getpackagename
(
void
)
public
array
getquantumdepth
(
void
)
public
string
getreleasedate
(
void
)
public
array
getsamplingfactors
(
void
)
public
array
getsize
(
void
)
public
array
getversion
(
void
)
public
mixed
hasnextimage
(
void
)
public
mixed
haspreviousimage
(
void
)
public
mixed
implodeimage
(
float
$radius
)
public
mixed
labelimage
(
string
$label
)
public
mixed
levelimage
(
float
$blackPoint
,
float
$gamma
,
float
$whitePoint
[,
int
$channel
= Gmagick::CHANNEL_DEFAULT
] )
public
mixed
magnifyimage
(
void
)
public
Gmagick
mapimage
(
gmagick
$gmagick
,
bool
$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
,
string
$background
[,
string
$format
] )
public
bool
nextimage
(
void
)
public
void
normalizeimage
([
int
$channel
] )
public
void
oilpaintimage
(
float
$radius
)
public
bool
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
array
queryfontmetrics
(
GmagickDraw
$draw
,
string
$text
)
public
array
queryfonts
([
string
$pattern
= "*"
] )
public
array
queryformats
([
string
$pattern
= "*"
] )
public
void
radialblurimage
(
float
$angle
[,
int
$channel
= Gmagick::CHANNEL_DEFAULT
] )
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
(
resource
$fp
[,
string
$filename
] )
public
void
reducenoiseimage
(
float
$radius
)
public
void
removeimage
(
void
)
public
string
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
= false
] )
public
void
rollimage
(
int
$x
,
int
$y
)
public
Gmagick
rotateimage
(
mixed
$color
,
float
$degrees
)
public
Gmagick
scaleimage
(
int
$width
,
int
$height
[,
bool
$fit
= false
] )
public
Gmagick
separateimagechannel
(
int
$channel
)
public
Gmagick
setfilename
(
string
$filename
)
public
Gmagick
setimagebackgroundcolor
(
GmagickPixel
$color
)
public
Gmagick
setimageblueprimary
(
float
$x
,
float
$y
)
public
Gmagick
setimagebordercolor
(
GmagickPixel
$color
)
public
Gmagick
setimagechanneldepth
(
int
$channel
,
int
$depth
)
public
Gmagick
setimagecolorspace
(
int
$colorspace
)
public
Gmagick
setimagecompose
(
int
$composite
)
public
Gmagick
setimagedelay
(
int
$delay
)
public
Gmagick
setimagedepth
(
int
$depth
)
public
Gmagick
setimagedispose
(
int
$disposeType
)
public
Gmagick
setimagefilename
(
string
$filename
)
public
Gmagick
setimageformat
(
string
$imageFormat
)
public
Gmagick
setimagegamma
(
float
$gamma
)
public
Gmagick
setimagegreenprimary
(
float
$x
,
float
$y
)
public
Gmagick
setimageindex
(
int
$index
)
public
Gmagick
setimageinterlacescheme
(
int
$interlace
)
public
Gmagick
setimageiterations
(
int
$iterations
)
public
Gmagick
setimageprofile
(
string
$name
,
string
$profile
)
public
Gmagick
setimageredprimary
(
float
$x
,
float
$y
)
public
Gmagick
setimagerenderingintent
(
int
$rendering_intent
)
public
Gmagick
setimageresolution
(
float
$xResolution
,
float
$yResolution
)
public
Gmagick
setimagescene
(
int
$scene
)
public
Gmagick
setimagetype
(
int
$imgType
)
public
Gmagick
setimageunits
(
int
$resolution
)
public
Gmagick
setimagewhitepoint
(
float
$x
,
float
$y
)
public
Gmagick
setsamplingfactors
(
array
$factors
)
public
Gmagick
setsize
(
int
$columns
,
int
$rows
)
public
Gmagick
shearimage
(
mixed
$color
,
float
$xShear
,
float
$yShear
)
public
Gmagick
solarizeimage
(
int
$threshold
)
public
Gmagick
spreadimage
(
float
$radius
)
public
Gmagick
stripimage
(
void
)
public
Gmagick
swirlimage
(
float
$degrees
)
public
Gmagick
thumbnailimage
(
int
$width
,
int
$height
[,
bool
$fit
= false
] )
public
Gmagick
trimimage
(
float
$fuzz
)
public
void
write
(
string
$filename
)
public
Gmagick
writeimage
(
string
$filename
[,
bool
$all_frames
= false
] )
}
目次
Gmagick::addimage
— Adds new image to Gmagick object image list
Gmagick::addnoiseimage
— Adds random noise to the image
Gmagick::annotateimage
— Annotates an image with text
Gmagick::blurimage
— Adds blur filter to image
Gmagick::borderimage
— Surrounds the image with a border
Gmagick::charcoalimage
— Simulates a charcoal drawing
Gmagick::chopimage
— Removes a region of an image and trims
Gmagick::clear
— Clears all resources associated to Gmagick object
Gmagick::commentimage
— Adds a comment to your image
Gmagick::compositeimage
— Composite one image onto another
Gmagick::__construct
— The Gmagick constructor
Gmagick::cropimage
— Extracts a region of the image
Gmagick::cropthumbnailimage
— Creates a crop thumbnail
Gmagick::current
— The current purpose
Gmagick::cyclecolormapimage
— Displaces an image's colormap
Gmagick::deconstructimages
— Returns certain pixel differences between images
Gmagick::despeckleimage
— The despeckleimage purpose
Gmagick::destroy
— The destroy purpose
Gmagick::drawimage
— Renders the GmagickDraw object on the current image
Gmagick::edgeimage
— Enhance edges within the image
Gmagick::embossimage
— Returns a grayscale image with a three-dimensional effect
Gmagick::enhanceimage
— Improves the quality of a noisy image
Gmagick::equalizeimage
— Equalizes the image histogram
Gmagick::flipimage
— Creates a vertical mirror image
Gmagick::flopimage
— The flopimage purpose
Gmagick::frameimage
— Adds a simulated three-dimensional border
Gmagick::gammaimage
— Gamma-corrects an image
Gmagick::getcopyright
— Returns the GraphicsMagick API copyright as a string
Gmagick::getfilename
— The filename associated with an image sequence
Gmagick::getimagebackgroundcolor
— Returns the image background color
Gmagick::getimageblueprimary
— Returns the chromaticy blue primary point
Gmagick::getimagebordercolor
— Returns the image border color
Gmagick::getimagechanneldepth
— Gets the depth for a particular image channel
Gmagick::getimagecolors
— Returns the color of the specified colormap index
Gmagick::getimagecolorspace
— Gets the image colorspace
Gmagick::getimagecompose
— Returns the composite operator associated with the image
Gmagick::getimagedelay
— Gets the image delay
Gmagick::getimagedepth
— Gets the depth of the image
Gmagick::getimagedispose
— Gets the image disposal method
Gmagick::getimageextrema
— Gets the extrema for the image
Gmagick::getimagefilename
— Returns the filename of a particular image in a sequence
Gmagick::getimageformat
— Returns the format of a particular image in a sequence
Gmagick::getimagegamma
— Gets the image gamma
Gmagick::getimagegreenprimary
— Returns the chromaticy green primary point
Gmagick::getimageheight
— Returns the image height
Gmagick::getimagehistogram
— Gets the image histogram
Gmagick::getimageindex
— Gets the index of the current active image
Gmagick::getimageinterlacescheme
— Gets the image interlace scheme
Gmagick::getimageiterations
— Gets the image iterations
Gmagick::getimagematte
— Return if the image has a matte channel
Gmagick::getimagemattecolor
— Returns the image matte color
Gmagick::getimageprofile
— Returns the named image profile.
Gmagick::getimageredprimary
— Returns the chromaticity red primary point
Gmagick::getimagerenderingintent
— Gets the image rendering intent
Gmagick::getimageresolution
— Gets the image X and Y resolution
Gmagick::getimagescene
— Gets the image scene
Gmagick::getimagesignature
— Generates an SHA-256 message digest
Gmagick::getimagetype
— Gets the potential image type.
Gmagick::getimageunits
— Gets the image units of resolution
Gmagick::getimagewhitepoint
— Returns the chromaticity white point
Gmagick::getimagewidth
— Returns the width of the image
Gmagick::getpackagename
— Returns the GraphicsMagick package name.
Gmagick::getquantumdepth
— Returns the Gmagick quantum depth as a string.
Gmagick::getreleasedate
— Returns the GraphicsMagick release date as a string.
Gmagick::getsamplingfactors
— Gets the horizontal and vertical sampling factor.
Gmagick::getsize
— Returns the size associated with the Gmagick object
Gmagick::getversion
— Returns the GraphicsMagick API version
Gmagick::hasnextimage
— Checks if the object has more images
Gmagick::haspreviousimage
— Checks if the object has a previous image
Gmagick::implodeimage
— Creates a new image as a copy
Gmagick::labelimage
— Adds a label to an image.
Gmagick::levelimage
— Adjusts the levels of an image
Gmagick::magnifyimage
— Scales an image proportionally 2x
Gmagick::mapimage
— Replaces the colors of an image with the closest color from a reference image.
Gmagick::medianfilterimage
— Applies a digital filter
Gmagick::minifyimage
— Scales an image proportionally to half its size
Gmagick::modulateimage
— Control the brightness, saturation, and hue
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
例
Gmagick::addimage
Gmagick
PHP Manual