0

I want to Render HTML Code to an Image with C#.

Can I do this without taking a snapshot from a URL

if i have:

string s = "<html>..</html>";

can i convert it to image or Bitmap Object

devdigital
  • 34,151
  • 9
  • 98
  • 120
Abdullah Darwish
  • 223
  • 2
  • 5
  • 17
  • possible duplicate of [Render HTML as an Image](http://stackoverflow.com/questions/334532/render-html-as-an-image) – H H Feb 19 '12 at 17:39

2 Answers2

1

Load the HTML to a WebControl, then create a screen shot... simple.

Brian Mains
  • 50,520
  • 35
  • 148
  • 257
Desolator
  • 22,411
  • 20
  • 73
  • 96
-4

You can convert your code into a byte-array and then will be able to convert the byte-array to a bitmap object.

DarkKnight
  • 37
  • 4