CAnnotationMerge Class Reference

Put annotations in EXIF or merge with image. More...

Inheritance diagram for CAnnotationMerge:

CAnnotationBase List of all members.

Public Member Functions

 flag_displayCaption ($flag=1)
 taggedFile ($path, $xml_string)
 _drawText ($params)
 mergedFile ($path, $params=array())

Public Attributes

 $display_caption = 0

Detailed Description

Put annotations in EXIF or merge with image.


Member Function Documentation

CAnnotationMerge::flag_displayCaption flag = 1  ) 
 

Turn on/off caption on image If turned on, caption will be displayed together with annotations

Parameters:
$flag 1 - Turn on, 0 - Turn off

CAnnotationMerge::mergedFile path,
params = array()
 

Draw annotations and caption on image using GD library built in PHP. Source file will be replaced.

Parameters:
$path Local path to jpeg file
$params Array with additional parameters:
  • $params['xml'] - XML string with annotations. If empty annotations will be extracted from image file
  • $params['font_size'] - Font size in pixles
  • $params['font_file'] - Path to font (TrueType). If not specified annotations will not be drawn
  • $params['font_color'] - Font color in RGB
    • $params['font_color']['r'] - Red
    • $params['font_color']['g'] - Green
    • $params['font_color']['b'] - Blue
  • $params['background_color'] - Background color in RGB
    • $params['background_color']['r'] - Red
    • $params['background_color']['g'] - Green
    • $params['background_color']['b'] - Blue
Returns:
ERROR_NONE if all ok

CAnnotationMerge::taggedFile path,
xml_string
 

Write annotations if XML format into JPEG

Parameters:
$path Local path to jpeg file (file must be exist)
$xml_string XML string with annotations


The documentation for this class was generated from the following file:
Generated on Fri Jul 28 12:50:53 2006 for FotoTaggerWebAPI by  doxygen 1.4.6-NO