DeviceTGraphicContext, TRenderingOptions Class
Represents base class for implementation particular rendering devices.
Inheritance Hierarchy
SystemObject
  Aspose.Html.RenderingDeviceTGraphicContext, TRenderingOptions
    Aspose.Html.Rendering.DocDocDevice
    Aspose.Html.Rendering.ImageImageDevice
    Aspose.Html.Rendering.PdfPdfDevice
    Aspose.Html.Rendering.XpsXpsDevice

Namespace: Aspose.Html.Rendering
Assembly: Aspose.HTML (in Aspose.HTML.dll) Version: 21.4
Syntax
public abstract class Device<TGraphicContext, TRenderingOptions> : IDevice, 
	IDisposable
where TGraphicContext : new(), GraphicContext
where TRenderingOptions : RenderingOptions

Type Parameters

TGraphicContext
Graphic context that holds current graphics control parameters
TRenderingOptions
Rendering options

The DeviceTGraphicContext, TRenderingOptions type exposes the following members.

Constructors
  NameDescription
Protected methodDeviceTGraphicContext, TRenderingOptions(TRenderingOptions, ICreateStreamProvider)
Initializes a new instance of the DeviceTGraphicContext, TRenderingOptions class by rendering options and stream provider.
Protected methodDeviceTGraphicContext, TRenderingOptions(TRenderingOptions, Stream)
Initializes a new instance of the DeviceTGraphicContext, TRenderingOptions class by rendering options and output stream.
Protected methodDeviceTGraphicContext, TRenderingOptions(TRenderingOptions, String)
Initializes a new instance of the DeviceTGraphicContext, TRenderingOptions class by rendering options and output file name.
Properties
  NameDescription
Protected propertyConfiguration
Gets device configuration.
Public propertyGraphicContext
Gets the graphic context
Public propertyOptions
Gets rendering options.
Protected propertyOutputStream
Sets and gets the output stream.
Protected propertyPageIndex
Sets or gets the index of the current page
Protected propertyStreamProvider
Gets the stream provider object.
Methods
  NameDescription
Public methodAddRect
Appends a rectangle to the current path as a complete subpath.
Public methodBeginDocument
Begins rendering of the document.
Public methodBeginElement
Begins rendering of the node.
Public methodBeginPage
Begins rendering of the new page.
Public methodClip
Modifies the current clipping path by intersecting it with the current path, using the FillMode rule to determine the region to fill. This method terminates current path.
Public methodClosePath
Closes the current subpath by appending a straight line segment from the current point to the starting point of the subpath. If the current subpath is already closed, "ClosePath" does nothing. This operator terminates the current subpath. Appending another segment to the current path begins a new subpath, even if the new segment begins at the endpoint reached by the "ClosePath" method.
Public methodCubicBezierTo
Appends a cubic Bézier curve to the current path. The curve extends from the current point to the point pt2, using pt1 and pt2 as the Bézier control points. The new current point is pt3.
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Protected methodDispose(Boolean)
Releases unmanaged and - optionally - managed resources.
Public methodDrawImage
Draws the specified image.
Public methodEndDocument
Ends rendering of the document.
Public methodEndElement
Ends rendering of the node.
Public methodEndPage
Ends rendering of the current page.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodFill
Fills the entire region enclosed by the current path. If the path consists of several disconnected subpaths, it fills the insides of all subpaths, considered together. This method terminates current path.
Public methodFillText
Fills the specified text string at the specified location.
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodFlush
Flushes all data to output stream.
Protected methodGetExtension
Gets extension of the output file.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the type of the current instance.
(Inherited from Object.)
Protected methodInitialize
Initializes context stack.
Public methodLineTo
Appends a straight line segment from the current point to the point (pt). The new current point is pt.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodMoveTo
Begins a new subpath by moving the current point to coordinates of the parameter pt, omitting any connecting line segment. If the previous path construction method in the current path was also "MoveTo", the new "MoveTo" overrides it; no vestige of the previous "MoveTo" operation remains in the path.
Public methodRestoreGraphicContext
Restores the entire graphics context to its former value by popping it from the stack.
Public methodSaveGraphicContext
Pushes a copy of the entire graphics context onto the stack.
Public methodStroke
Strokes a line along the current path. The stroked line follows each straight or curved segment in the path, centered on the segment with sides parallel to it. Each of the path’s subpaths is treated separately. This method terminates current path.
Public methodStrokeAndFill
Strokes and fill current path. This method terminates current path.
Public methodStrokeText
Strokes the specified text string at the specified location.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
See Also