dfwcomputer Posted January 7, 2008 Share Posted January 7, 2008 Hi all, i currently have a clock that uses GD to draw.It works fine but, it draws like follows; $clock = new AnalogClock(128); // Create a 128x128 pixel clock $clock->timezone = +9; // GMT -0600 /* These affect the way the clock looks */ $clock->Alias(TRUE); // Turn on anti-aliasing $clock->Background('bg.gif'); // Add a background image /* The clock's hands */ $clock->NewHand('hour', 'line', '000000', 20, 3, TRUE); $clock->NewHand('min', 'line', '000000', 35, 3, TRUE); $clock->DrawOverlay('plain-overlay.png'); $clock->DrawPNG(); // Output as a PNG is there away to change this so it uses echo. e.g. $output = "DrawPNG()"; $clock = new AnalogClock(128); // Create a 128x128 pixel clock $clock->timezone = +9; // GMT -0600 /* These affect the way the clock looks */ $clock->Alias(TRUE); // Turn on anti-aliasing $clock->Background('bg.gif'); // Add a background image /* The clock's hands */ $clock->NewHand('hour', 'line', '000000', 20, 3, TRUE); $clock->NewHand('min', 'line', '000000', 35, 3, TRUE); $clock->DrawOverlay('plain-overlay.png'); echo "$output"; This obviously does not work but its the best way i could explain it. Thanks Link to comment https://forums.phpfreaks.com/topic/84828-gd-clock/ Share on other sites More sharing options...
dfwcomputer Posted January 10, 2008 Author Share Posted January 10, 2008 Anyone got any ideas on this one? Link to comment https://forums.phpfreaks.com/topic/84828-gd-clock/#findComment-435360 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.