Connecting Tech Pros Worldwide Help | Site Map

Convert HTML Code to an Image

  #1  
Old July 17th, 2005, 12:27 PM
petrovitch
Guest
 
Posts: n/a
The function imagecreate() is limited to raw text. How can I convert
an string with HTML tags to an image?

For example, if I wanted to create a dynamic banner or web page heading
using style codes or even the inclusion of images with <img tags.

  #2  
Old July 17th, 2005, 12:27 PM
NC
Guest
 
Posts: n/a

re: Convert HTML Code to an Image


petrovitch wrote:[color=blue]
>
> The function imagecreate() is limited to raw text.
> How can I convert an string with HTML tags to an image?[/color]

You need to write your own HTML parser or lift one from
somewhere (Mozilla, perhaps?)...
[color=blue]
> For example, if I wanted to create a dynamic banner or
> web page heading using style codes or even the inclusion
> of images with <img tags.[/color]

Good luck... Tim Berners-Lee once remarked that it took
him a couple of months to write WorldWideWeb (aka Nexus)
on NeXT, but it would likely take him a year to do it on
any other platform. And that was in 1990, way before CSS...

Cheers,
NC

Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert HTML to Image PenguinPig answers 6 July 18th, 2006 11:45 AM
Need to add assembly reference to an ASP.NET page with XML/XSL transform Greg Collins [MVP] answers 5 November 18th, 2005 06:08 PM
how to show an Image field from a SQL Server table field to a aspx page J Sahoo answers 2 November 18th, 2005 02:40 PM
Convert VB to C# for reading an image from Access DB dale zhang answers 3 November 17th, 2005 11:51 AM