点击或拖拽改变大小

HtmlRenderRenderToImageGdiPlus 方法

重载列表
  名称说明
公共方法静态成员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.
Top
参见