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 Quote Link to comment 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? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.