![]() HorizontalResolution and VerticalResolution properties that set horizontal/vertical resolution for output images in pixels per inch.The default BackgroundColor is Transparent BackgroundColor property that sets the color that will fill the background.The ConvertHTML() method takes the document, options, output file path savePath and performs the conversion operation. ImageSaveOptions() constructor initializes an instance of the ImageSaveOptions class that is passed to ConvertHTML() method. ![]() ConvertHTML (document, options, savePath ) ![]() Using var document = new HTMLDocument("document. You will immediately receive the result as a separate file. In the example, the save options are set by default. Please load HTML from the local file system, select the output format and run the example. You can check the Aspose.HTML API functionality and convert HTML in real-time. In this article, you find information on converting HTML to JPG by usingĬonvertHTML() methods of the Converter class and applying With Aspose.HTML, you can convert HTML to JPG format programmatically with full control over a wide range of conversion parameters. JPG is a commonly used format for storing images, and HTML to JPG conversion is very popular. UsingĬonverter.ConvertHTML methods is the most common way to convert HTML code into various formats. Converting HTML files to the JPG image may be required, for example, if you want to add a web page in a PowerPoint presentation or send it by e-mail. This unique compression feature allows to quickly and efficiently share JPG images and use them widely on the Web, computers, and mobile devices. JPG files can contain high-quality image data with lossless compression. Convert HTML to JPG using ImageSaveOptions.
0 Comments
Leave a Reply. |