forked from ArthurHub/HTML-Renderer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathreadme.txt
More file actions
50 lines (36 loc) · 1.99 KB
/
Copy pathreadme.txt
File metadata and controls
50 lines (36 loc) · 1.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
********** Welcome to the HTML Renderer WinForms library! *****************************************
This library provides the rich formatting power of HTML in your .NET applications using simple
controls or static rendering code.
For more info see HTML Renderer on CodePlex: http://htmlrenderer.codeplex.com
********** DEMO APPLICATION ***********************************************************************
HTML Renderer Demo application showcases HTML Renderer capabilities, use it to explore and learn
on the library: http://htmlrenderer.codeplex.com/wikipage?title=Demo%20application
********** FEEDBACK / RELEASE NOTES ***************************************************************
If you have problems, wish to report a bug, or have a suggestion please start a thread on
HTML Renderer discussions page: http://htmlrenderer.codeplex.com/discussions
For full release notes and all versions see: http://htmlrenderer.codeplex.com/releases
********** QUICK START ****************************************************************************
For more Quick Start see: https://htmlrenderer.codeplex.com/wikipage?title=Quick%20start
***************************************************************************************************
********** Quick Start: Use HTML panel control on WinForms form
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
HtmlRenderer.HtmlPanel htmlPanel = new HtmlRenderer.HtmlPanel();
htmlPanel.Text = "<p><h1>Hello World</h1>This is html rendered text</p>";
htmlPanel.Dock = DockStyle.Fill;
Controls.Add(htmlPanel);
}
}
***************************************************************************************************
********** Quick Start: Create image from HTML snippet
class Program
{
private static void Main(string[] args)
{
Image image = HtmlRenderer.HtmlRender.RenderToImage("<p><h1>Hello World</h1>This is html rendered text</p>");
image.Save("image.png", ImageFormat.Png);
}
}