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
Host
Gets the bound host of the context.
IHtmlCanvasElement Host { get; }
Property Value
IsFixed
Gets if the context's bitmap mode is fixed.
bool IsFixed { get; }
Property Value
Methods
ToImage(string)
Converts the current data to the given image format.
byte[] ToImage(string type)
Parameters
type
stringThe type of the image format.
Returns
- byte[]
The raw content bytes of the image.