|
3 | 3 | <title></title> |
4 | 4 | <link rel="Stylesheet" href="StyleSheet" /> |
5 | 5 | <style> |
6 | | - td |
7 | | - { |
| 6 | + .tag { |
| 7 | + color: rgb(128,0,0); |
| 8 | + } |
| 9 | + |
| 10 | + .att { |
| 11 | + color: rgb(240,0,0); |
| 12 | + } |
| 13 | + |
| 14 | + .prop { |
| 15 | + color: rgb(128,0,171); |
| 16 | + } |
| 17 | + |
| 18 | + td { |
8 | 19 | vertical-align: middle; |
9 | 20 | padding: 1em; |
10 | 21 | } |
11 | 22 | </style> |
12 | 23 | </head> |
13 | 24 | <body> |
14 | | - <h1> |
15 | | - Images |
| 25 | + <h1>Images |
16 | 26 | <img src="ImageIcon" /> |
17 | 27 | </h1> |
18 | 28 | <blockquote> |
19 | 29 | <p> |
20 | | - Of course, there's the capability of displaying images. In this release, images |
21 | | - lack of the expected alignment features to behave just as expected on an HTML context, |
22 | | - but they will do just fine for inline contexts, tables and some others.</p> |
23 | | - <h2> |
24 | | - Inserting images |
| 30 | + HTML Renderer supports <code class="tag">img</code> tag as well as CSS <code class="prop">background-image</code> property. |
| 31 | + <br /> |
| 32 | + Image data can be provided by URI, file path, base64 encoded and code interception. |
| 33 | + |
| 34 | + </p> |
| 35 | + |
| 36 | + <h2>Loading image |
25 | 37 | </h2> |
26 | 38 | <p> |
27 | | - We all know that the <code>src</code> attribute of the <code>img</code> HTML tag |
28 | | - can be a relative or absolute path to an image on the same or any other server. |
29 | | - Here things are slightly different. Images can come from other sources:</p> |
30 | | - <ul> |
31 | | - <li><b>File Paths</b>: If you place a path to a file, the Renderer will try to load |
32 | | - it using <code><font color="#099">Image</font>.FromFile</code></li> |
33 | | - <li><b>Static Properties:</b> Obtains the image from a static property that returns |
34 | | - an <code><font color="#099">Image</font></code> object</li> |
35 | | - <li><b>Static Methods:</b> Obtains the image from a static method that takes no arguments |
36 | | - and returns an <code><font color="#099">Image</font></code> </li> |
37 | | - </ul> |
38 | | - <h2> |
39 | | - Positioning Images |
40 | | - </h2> |
| 39 | + <h3>URI</h3> |
| 40 | + </p> |
| 41 | + <p> |
| 42 | + <h3>File path</h3> |
| 43 | + </p> |
| 44 | + <p> |
| 45 | + <h3>Base64 encoded</h3> |
| 46 | + </p> |
| 47 | + <p> |
| 48 | + <h3>Intercept</h3> |
| 49 | + </p> |
| 50 | + <h2>img tag</h2> |
41 | 51 | <p> |
42 | 52 | You can use Images anyway you like, apply borders margin and padding as for any |
43 | 53 | other box. |
| 54 | + <div style="margin-top: 10px;"> |
| 55 | + <b>Limitation</b> |
| 56 | + <br /> |
| 57 | + Image <code class="att">align</code> attribute and CSS <code class="prop">float</code> property are not yet supported. |
| 58 | + </div> |
44 | 59 | </p> |
45 | 60 | <table border="1"> |
46 | 61 | <tr> |
47 | | - <td> |
48 | | - Just an image: |
| 62 | + <td>Just an image: |
49 | 63 | </td> |
50 | 64 | <td align="center"> |
51 | 65 | <img src="FontIcon" /> |
52 | 66 | </td> |
53 | 67 | </tr> |
54 | 68 | <tr> |
55 | | - <td> |
56 | | - Image with border and background: |
| 69 | + <td>Image with border and background: |
57 | 70 | </td> |
58 | 71 | <td align="center"> |
59 | 72 | <img src="FontIcon" style="border: 1px solid blue; background-color: Silver" /> |
60 | 73 | </td> |
61 | 74 | </tr> |
62 | 75 | <tr> |
63 | | - <td> |
64 | | - Stretched Image: |
| 76 | + <td>Stretched Image: |
65 | 77 | </td> |
66 | 78 | <td align="center"> |
67 | 79 | <img src="FontIcon" width="50" height="50" /> |
68 | 80 | </td> |
69 | 81 | </tr> |
70 | 82 | <tr> |
71 | | - <td> |
72 | | - Huge padding and border: |
| 83 | + <td>Huge padding and border: |
73 | 84 | </td> |
74 | 85 | <td> |
75 | 86 | <img align="center" src="FontIcon" style="padding: 1em; border: solid 1em blue; background-color: #def" /> |
76 | 87 | </td> |
77 | 88 | </tr> |
78 | 89 | <tr> |
79 | | - <td colspan="2" align="center" valign="middle"> |
80 | | - Image in line |
| 90 | + <td colspan="2" align="center" valign="middle">Image in line |
81 | 91 | <img src="CommentIcon" /> |
82 | 92 | with the text |
83 | 93 | </td> |
84 | 94 | </tr> |
85 | 95 | </table> |
| 96 | + |
| 97 | + <h2>Background images |
| 98 | + </h2> |
| 99 | + |
86 | 100 | </blockquote> |
87 | 101 | </body> |
88 | 102 | </html> |
0 commit comments