Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

imagick.setfont(3) [php man page]

IMAGICK.SETFONT(3)							 1							IMAGICK.SETFONT(3)

Imagick::setFont - Sets font

SYNOPSIS
bool Imagick::setFont (string $font) DESCRIPTION
Sets object's font property. This method can be used for example to set font for caption: pseudo-format. The font needs to be configured in ImageMagick configuration or a file by the name of $font must exist. This method should not be confused with ImagickDraw.setFont(3) which sets the font for a specific ImagickDraw object. This method is available if Imagick has been compiled against ImageMagick version 6.3.7 or newer. PARAMETERS
o $font - Font name or a filename RETURN VALUES
Returns TRUE on success. SEE ALSO
Imagick.getFont(3), ImagickDraw.setFont(3), ImagickDraw.getFont(3). EXAMPLES
Example #1 A Imagick.setFont(3) example Example of using Imagick::setFont <?php /* Create new imagick object */ $im = new Imagick(); /* Set the font for the object */ $im->setFont("example.ttf"); /* Create new caption */ $im->newPseudoImage(100, 100, "caption:Hello"); /* Do something with the image */ ?> PHP Documentation Group IMAGICK.SETFONT(3)

Check Out this Related Man Page

IMAGICK.WHITETHRESHOLDIMAGE(3)						 1					    IMAGICK.WHITETHRESHOLDIMAGE(3)

Imagick::whiteThresholdImage - Force all pixels above the threshold into white

SYNOPSIS
bool Imagick::whiteThresholdImage (mixed $threshold) DESCRIPTION
Is like Imagick::ThresholdImage() but force all pixels above the threshold into white while leaving all pixels below the threshold unchanged. PARAMETERS
o $threshold - RETURN VALUES
Returns TRUE on success. CHANGELOG
+--------+---------------------------------------------------+ |Version | | | | | | | Description | | | | +--------+---------------------------------------------------+ | 2.1.0 | | | | | | | Now allows a string representing the color as a | | | parameter. Previous versions allow only an Imag- | | | ickPixel object. | | | | +--------+---------------------------------------------------+ EXAMPLES
Example #1 Imagick.whiteThresholdImage(3) <?php function whiteThresholdImage($imagePath, $color) { $imagick = new Imagick(realpath($imagePath)); $imagick->whiteThresholdImage($color); header("Content-Type: image/jpg"); echo $imagick->getImageBlob(); } ?> PHP Documentation Group IMAGICK.WHITETHRESHOLDIMAGE(3)
Man Page