FotoTagger.com
 Home | Support Forum | Feedback | Articles | Awards & Press | Blog 


Upgrade from pixels to knowledge!

         Overview
         Web API
         Overview
         Features
         Installation
         Components
         Code Example
         Get Web API
         Web API Help
         Web Filter
         FotoML
         Use Cases
         Get Solution


DOWNLOAD

TAKE A TOUR

PRESS & AWARDS

MAILING LIST
OK


Code Example

Copy this code example into a .php file. In order to run correctly, you must place annotations.php and JPEG.php on your server and change paths in the include directives below as needed.

<?
	/*
	* This example illustrates how to insert 
	* annotated image into your web page
	*/

	include "../annotations.php";
	include "../JPEG.php";

	// creating object
	$a = new CAnnotationDisplay();

	// turn on links replacement (http, mailto, ..)
	$a->flag_replaceLinks(1);
?>

<html>
<title>Display annotations. Example.</title>
<? echo $a->getStyles(); ?>
<? echo $a->getJavascript(); ?>
<body>

This example illustrates how to insert 
annotated image into your web page.<br>

<?echo $a->getAnnotatedImageFromFile(
"sample.jpg", "sample.jpg"); ?>

</body>
</html>


About | Contact Us | Press | Site Map | Privacy Policy| Promote | Partners
Copyright © 2006-2008 Cogitum LC All rights reserved
OK