CodecsHtmlEngine Enumeration (original) (raw)

Summary

The HTML engine to use when rendering HTML files.

Syntax

public enum CodecsHtmlEngine 

public: enum class CodecsHtmlEngine sealed

class CodecsHtmlEngine(Enum): Auto = 0 IE = 1 WebKit = 2

Members

Value Member Description
0 Auto Use the default engine for the platform
1 IE Use Internet Explorer
2 WebKit Use the WebKit rendering engine (requires additional download)

Example

using Leadtools; using Leadtools.Codecs; using Leadtools.ImageProcessing.Core; public void CodecsHtmlOptions_Example() { using (RasterCodecs codecs = new RasterCodecs()) { // Use the default HTML rendering engine - CodecsHtmlOptions & CodecsHtmlLoadOptions reference codecs.Options.Html.Load.HtmlEngine = CodecsHtmlEngine.Auto; // Set the HTML options to only allow loading resources from the leadtools.com domain: codecs.Options.Html.Load.DomainWhitelist = "leadtools.com"; // Disable all JavaScript embedded in the HTML file codecs.Options.Html.Load.EnableJS = false; // Load the image using (RasterImage image = codecs.Load("file.html", 1)) { // Do something with image } } }

Leadtools.Codecs Assembly

CompactFile(Stream,Stream,int,int,bool,int,int,bool,int,CodecsSavePageMode,bool,bool) Method

CompactFile(Stream,Stream,int,int,bool,long,int,bool,long,CodecsSavePageMode,bool,bool,bool) Method

CompactFile(string,string,int,int,bool,int,int,bool,int,CodecsSavePageMode,bool,bool) Method

CompactFile(string,string,int,int,bool,long,int,bool,long,CodecsSavePageMode,bool,bool,bool) Method

StartCompress(int,int,int,RasterByteOrder,RasterViewPerspective,int,byte[],int,int,CodecsCompression,CodecsCompressDataCallback) Method