WideImage 1.0 branch (discontinued)

WideImage Wiki : wiCanvasWriteText

MainPage :: Categories :: PageIndex :: RecentChanges :: RecentlyCommented :: Login/Register
Support This Project SourceForge.net Logo
Important notice: the development of WideImage 1.0 branch is discontinued. Please visit http://wideimage.sourceforge.net for the new version of library and documentation.
This web site will remain accessible to serve as documentation for the old versions of the library. For help on migration, please refer to the migration guide.

wiCanvas::drawText()

See: List of operations

Signature

wiCanvas::drawText($left, $top, $text, $angle = 0)

Parameters


Description

This method writes text on a canvas

Notes

Canvas is still in early developement and is marked as unstable, as it may change noticeably for the 1.0 final release.

Examples

$img = wiImage::load('/path/to/an/image.png');
$canvas = $img->getCanvas();

// create and set a font
$white = $img->allocateColor(255, 255, 255);
$font = new wiFont_TTF("Arial", 15, $white);
$canvas->setFont($font);

// write the text
$canvas->writeText(15, 15, 'Hi :)');



CategoryDocApi CategoryUnstableApi

There are no comments on this page. [Add comment]

WideImage - an Object-Oriented PHP Image Library for Image manipulation
Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by Wikka Wakka Wiki 1.1.6.2
Page was generated in 1.9470 seconds