Table of Contents

Interface IRenderingContext

Namespace
AngleSharp.Media.Dom
Assembly
AngleSharp.dll

Represents the typedef for any rendering context. This is shown is the base interface for all rendering contexts.

[DomName("RenderingContext")]
public interface IRenderingContext
Extension Methods

Properties

ContextId

Gets the ID of the rendering context.

string ContextId { get; }

Property Value

string

Host

Gets the bound host of the context.

IHtmlCanvasElement Host { get; }

Property Value

IHtmlCanvasElement

IsFixed

Gets if the context's bitmap mode is fixed.

bool IsFixed { get; }

Property Value

bool

Methods

ToImage(string)

Converts the current data to the given image format.

byte[] ToImage(string type)

Parameters

type string

The type of the image format.

Returns

byte[]

The raw content bytes of the image.