HtmlRender 方法 |
HtmlRender 类型公开以下成员。
名称 | 说明 | |
---|---|---|
AddFontFamily |
Adds a font family to be used in html rendering. The added font will be used by all rendering function including HtmlContainer and all WinForms controls. | |
AddFontFamilyMapping |
Adds a font mapping from fromFamily to toFamily iff the fromFamily is not found. When the fromFamily font is used in rendered html and is not found in existing fonts (installed or added) it will be replaced by toFamily. | |
Measure |
Measure the size (width and height) required to draw the given html under given max width restriction. If no max width restriction is given the layout will use the maximum possible width required by the content, it can be the longest text line or full image width. Use GDI text rendering, note TextRenderingHint has no effect. | |
MeasureGdiPlus |
Measure the size (width and height) required to draw the given html under given max width restriction. If no max width restriction is given the layout will use the maximum possible width required by the content, it can be the longest text line or full image width. Use GDI+ text rending, use TextRenderingHint to control text rendering. | |
ParseStyleSheet |
Parse the given stylesheet to CssData object. If combineWithDefault is true the parsed css blocks are added to the default css data (as defined by W3), merged if class name already exists. If false only the data in the given stylesheet is returned. | |
Render(Graphics, String, PointF, SizeF, CssData, EventHandlerHtmlStylesheetLoadEventArgs, EventHandlerHtmlImageLoadEventArgs) |
Renders the specified HTML source on the specified location and max size restriction. Use GDI text rendering, note TextRenderingHint has no effect. If maxSize.Width is zero the html will use all the required width, otherwise it will perform line wrap as specified in the html If maxSize.Height is zero the html will use all the required height, otherwise it will clip at the given max height not rendering the html below it. Returned is the actual width and height of the rendered html. | |
Render(Graphics, String, Single, Single, Single, CssData, EventHandlerHtmlStylesheetLoadEventArgs, EventHandlerHtmlImageLoadEventArgs) |
Renders the specified HTML source on the specified location and max width restriction. Use GDI text rendering, note TextRenderingHint has no effect. If maxWidth is zero the html will use all the required width, otherwise it will perform line wrap as specified in the html Returned is the actual width and height of the rendered html. | |
RenderGdiPlus(Graphics, String, PointF, SizeF, CssData, EventHandlerHtmlStylesheetLoadEventArgs, EventHandlerHtmlImageLoadEventArgs) |
Renders the specified HTML source on the specified location and max size restriction. Use GDI+ text rending, use TextRenderingHint to control text rendering. If maxSize.Width is zero the html will use all the required width, otherwise it will perform line wrap as specified in the html If maxSize.Height is zero the html will use all the required height, otherwise it will clip at the given max height not rendering the html below it. Returned is the actual width and height of the rendered html. | |
RenderGdiPlus(Graphics, String, Single, Single, Single, CssData, EventHandlerHtmlStylesheetLoadEventArgs, EventHandlerHtmlImageLoadEventArgs) |
Renders the specified HTML source on the specified location and max size restriction. Use GDI+ text rending, use TextRenderingHint to control text rendering. If maxWidth is zero the html will use all the required width, otherwise it will perform line wrap as specified in the html Returned is the actual width and height of the rendered html. | |
RenderToImage(Image, String, PointF, CssData, EventHandlerHtmlStylesheetLoadEventArgs, EventHandlerHtmlImageLoadEventArgs) |
Renders the specified HTML on top of the given image. image will contain the rendered html in it on top of original content. image must not contain transparent pixels as it will corrupt the rendered html text. The HTML will be layout by the given image size but may be clipped if cannot fit. See "Rendering to image" remarks section on HtmlRender. | |
RenderToImage(String, Size, Color, CssData, EventHandlerHtmlStylesheetLoadEventArgs, EventHandlerHtmlImageLoadEventArgs) |
Renders the specified HTML into a new image of the requested size. The HTML will be layout by the given size but will be clipped if cannot fit.
Limitation: The image cannot have transparent background, by default it will be white. | |
RenderToImage(Image, String, PointF, SizeF, CssData, EventHandlerHtmlStylesheetLoadEventArgs, EventHandlerHtmlImageLoadEventArgs) |
Renders the specified HTML on top of the given image. image will contain the rendered html in it on top of original content. image must not contain transparent pixels as it will corrupt the rendered html text. See "Rendering to image" remarks section on HtmlRender. | |
RenderToImage(String, Size, Size, Color, CssData, EventHandlerHtmlStylesheetLoadEventArgs, EventHandlerHtmlImageLoadEventArgs) |
Renders the specified HTML into a new image of unknown size that will be determined by min/max width/height and HTML layout. If maxSize.Width.Width is zero the html will use all the required width, otherwise it will perform line wrap as specified in the html If maxSize.Height.Height is zero the html will use all the required height, otherwise it will clip at the given max height not rendering the html below it. If minSize (Width/Height) is above zero the rendered image will not be smaller than the given min size.
Limitation: The image cannot have transparent background, by default it will be white. | |
RenderToImage(String, Int32, Int32, Color, CssData, EventHandlerHtmlStylesheetLoadEventArgs, EventHandlerHtmlImageLoadEventArgs) |
Renders the specified HTML into a new image of unknown size that will be determined by max width/height and HTML layout. If maxWidth is zero the html will use all the required width, otherwise it will perform line wrap as specified in the html If maxHeight is zero the html will use all the required height, otherwise it will clip at the given max height not rendering the html below it.
Limitation: The image cannot have transparent background, by default it will be white. | |
RenderToImageGdiPlus(String, Size, TextRenderingHint, CssData, EventHandlerHtmlStylesheetLoadEventArgs, EventHandlerHtmlImageLoadEventArgs) |
Renders the specified HTML into a new image of the requested size. The HTML will be layout by the given size but will be clipped if cannot fit. The generated image have transparent background that the html is rendered on. GDI+ text rending can be controlled by providing TextRenderingHint. See "Rendering to image" remarks section on HtmlRender. | |
RenderToImageGdiPlus(String, Size, Size, TextRenderingHint, CssData, EventHandlerHtmlStylesheetLoadEventArgs, EventHandlerHtmlImageLoadEventArgs) |
Renders the specified HTML into a new image of unknown size that will be determined by min/max width/height and HTML layout. If maxSize.Width.Width is zero the html will use all the required width, otherwise it will perform line wrap as specified in the html If maxSize.Height.Height is zero the html will use all the required height, otherwise it will clip at the given max height not rendering the html below it. If minSize (Width/Height) is above zero the rendered image will not be smaller than the given min size. The generated image have transparent background that the html is rendered on. GDI+ text rending can be controlled by providing TextRenderingHint. See "Rendering to image" remarks section on HtmlRender. | |
RenderToImageGdiPlus(String, Int32, Int32, TextRenderingHint, CssData, EventHandlerHtmlStylesheetLoadEventArgs, EventHandlerHtmlImageLoadEventArgs) |
Renders the specified HTML into a new image of unknown size that will be determined by max width/height and HTML layout. If maxWidth is zero the html will use all the required width, otherwise it will perform line wrap as specified in the html If maxHeight is zero the html will use all the required height, otherwise it will clip at the given max height not rendering the html below it. The generated image have transparent background that the html is rendered on. GDI+ text rending can be controlled by providing TextRenderingHint. See "Rendering to image" remarks section on HtmlRender. |