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