PHP Classes

Image Cut Off

Recommend this page to a friend!

      PHP Tree Graph Ext  >  All threads  >  Image Cut Off  >  (Un) Subscribe thread alerts  
Subject:Image Cut Off
Summary:The rendered image appears cut off after rendering
Messages:1
Author:bartex
Date:2008-04-17 15:23:46
 

 


  1. Image Cut Off   Reply   Report abuse  
Picture of bartex bartex - 2008-04-17 15:23:47
Thanks for your tree graph library.

I tried to generate a graph but the image appears cut off. I get about 80% of the actual image.

Here is the code that I used to create the image:

$objTree = new GDRenderer(30, 10, 30, 50, 40);

//add nodes to the tree, parameters: id, parentid optional title, text, width, height, image(path)
$objTree->add(1,0,' Total # in campaign','',strlen(" Total # in campaign")*9);
$objTree->add(2,1,' Sent Enrollments', '', strlen(" Sent Enrollments")*9);
$objTree->add(3,2,' 100% Upfront', '', strlen(" 100% Upfront")*9);
$objTree->add(4,2,' Quick start advantage 100% / Partial', '', strlen(" Quick start advantage 100% / Partial")*9);
$objTree->add(5,4,' Returned Enrollment Form', '', strlen(" Returned Enrollment Form")*9);
$objTree->add(6,5,' Cancelled', '', strlen(" Cancelled")*9);
$objTree->add(7,5,' Collected', '', strlen(" Collected")*9);
$objTree->add(8,5,' Future Estimated Collection Date', '', strlen(" Future Estimated Collection Date")*9);
$objTree->add(9,5,' Currently in Collection', '', strlen(" Currently in Collection")*9);

$objTree->setBGColor(array(255, 255, 255));
$objTree->setNodeTitleColor(array(255, 255, 255));
$objTree->setNodeMessageColor(array(255, 255, 255));
$objTree->setNodeBorder(array(0, 0, 0), 2);
$objTree->stream();

Thanks in advance for your help.