HtmlConverter
FromString Method (String, String, ImageType, Int32, Int32, AspectRatio)
|
Html Convert to Image.
Namespace:
Spire.Additions.Html
Assembly:
Spire.Pdf (in Spire.Pdf.dll) Version: 11.3.7.0 (11.3.7.1046)
Syntax
public Image FromString(
string html,
string baseUrl,
ImageType type,
int width,
int height,
AspectRatio aspectRatio
)
Public Function FromString (
html As String,
baseUrl As String,
type As ImageType,
width As Integer,
height As Integer,
aspectRatio As AspectRatio
) As Image
public:
Image^ FromString(
String^ html,
String^ baseUrl,
ImageType type,
int width,
int height,
AspectRatio aspectRatio
)
member FromString :
html : string *
baseUrl : string *
type : ImageType *
width : int *
height : int *
aspectRatio : AspectRatio -> Image
Parameters
-
html
-
Type:
System
String
html string.
-
baseUrl
-
Type:
System
String
baseUrl.
-
type
-
Type:
Spire.Additions.Html
ImageType
ImageType.
-
width
-
Type:
System
Int32
width.
-
height
-
Type:
System
Int32
height.
-
aspectRatio
-
Type:
Spire.Additions.Html
AspectRatio
AspectRatio.
Return Value
Type:
Image
Returns Image.
See Also