ImageDevice Class
Represents rendering to raster formats: jpeg, png, bmp, gif, tiff.
Inheritance Hierarchy
SystemObject
  Aspose.Svg.RenderingDeviceImageDeviceImageGraphicContext, ImageRenderingOptions
    Aspose.Svg.Rendering.ImageImageDevice

Namespace: Aspose.Svg.Rendering.Image
Assembly: Aspose.SVG (in Aspose.SVG.dll) Version: 20.5
Syntax
public class ImageDevice : Device<ImageDeviceImageGraphicContext, ImageRenderingOptions>

The ImageDevice type exposes the following members.

Constructors
  NameDescription
Public methodImageDevice(Stream)
Initializes a new instance of the ImageDevice class.
Public methodImageDevice(String)
Initializes a new instance of the ImageDevice class.
Public methodImageDevice(ICreateStreamProvider)
Initializes a new instance of the ImageDevice class.
Public methodImageDevice(ImageRenderingOptions, ICreateStreamProvider)
Initializes a new instance of the ImageDevice class by rendering options and stream provider.
Public methodImageDevice(ImageRenderingOptions, Stream)
Initializes a new instance of the ImageDevice class by rendering options and output stream.
Public methodImageDevice(ImageRenderingOptions, String)
Initializes a new instance of the ImageDevice class by rendering options and output file name.
Properties
  NameDescription
Protected propertyConfiguration
Gets device configuration.
(Overrides DeviceTGraphicContext, TRenderingOptionsConfiguration.)
Public propertyGraphicContext
Gets the graphic context
(Inherited from DeviceTGraphicContext, TRenderingOptions.)
Public propertyGraphics
Gets the instance of Graphics.
Public propertyOptions
Gets rendering options.
(Inherited from DeviceTGraphicContext, TRenderingOptions.)
Protected propertyOutputStream
Sets and gets the output stream.
(Inherited from DeviceTGraphicContext, TRenderingOptions.)
Protected propertyPageIndex
Sets or gets the index of the current page
(Inherited from DeviceTGraphicContext, TRenderingOptions.)
Protected propertyStreamProvider
Gets the stream provider object.
(Inherited from DeviceTGraphicContext, TRenderingOptions.)
Methods
  NameDescription
Public methodAddRect
Appends a rectangle to the current path as a complete subpath.
(Overrides DeviceTGraphicContext, TRenderingOptionsAddRect(RectangleF).)
Public methodBeginDocument
Begins rendering of the document.
(Overrides DeviceTGraphicContext, TRenderingOptionsBeginDocument(Document).)
Public methodBeginElement
Begins rendering of the element.
(Overrides DeviceTGraphicContext, TRenderingOptionsBeginElement(Element, RectangleF).)
Public methodBeginPage
Begins rendering of the new page.
(Overrides DeviceTGraphicContext, TRenderingOptionsBeginPage(SizeF).)
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.
(Overrides DeviceTGraphicContext, TRenderingOptionsClip(FillMode).)
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.
(Overrides DeviceTGraphicContext, TRenderingOptionsClosePath.)
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.
(Overrides DeviceTGraphicContext, TRenderingOptionsCubicBezierTo(PointF, PointF, PointF).)
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from DeviceTGraphicContext, TRenderingOptions.)
Protected methodDispose(Boolean)
Releases unmanaged and - optionally - managed resources.
(Overrides DeviceTGraphicContext, TRenderingOptionsDispose(Boolean).)
Public methodDrawImage
Draws the specified image.
(Overrides DeviceTGraphicContext, TRenderingOptionsDrawImage(Byte, ImageType, RectangleF).)
Public methodEndDocument
Ends rendering of the document.
(Overrides DeviceTGraphicContext, TRenderingOptionsEndDocument.)
Public methodEndElement
Ends rendering of the element.
(Overrides DeviceTGraphicContext, TRenderingOptionsEndElement(Element).)
Public methodEndPage
Ends rendering of the current page.
(Overrides DeviceTGraphicContext, TRenderingOptionsEndPage.)
Public methodEquals (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.
(Overrides DeviceTGraphicContext, TRenderingOptionsFill(FillMode).)
Public methodFillText
Fills the specified text string at the specified location.
(Overrides DeviceTGraphicContext, TRenderingOptionsFillText(String, PointF).)
Protected methodFinalize (Inherited from Object.)
Public methodFlush
Flushes all data to output stream.
(Overrides DeviceTGraphicContext, TRenderingOptionsFlush.)
Protected methodGetExtension
Gets extension of the output file.
(Overrides DeviceTGraphicContext, TRenderingOptionsGetExtension.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodInitialize
Initializes context stack.
(Overrides DeviceTGraphicContext, TRenderingOptionsInitialize.)
Public methodLineTo
Appends a straight line segment from the current point to the point (pt). The new current point is pt.
(Overrides DeviceTGraphicContext, TRenderingOptionsLineTo(PointF).)
Protected methodMemberwiseClone (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.
(Overrides DeviceTGraphicContext, TRenderingOptionsMoveTo(PointF).)
Public methodRestoreGraphicContext
Restores the entire graphics context to its former value by popping it from the stack.
(Overrides DeviceTGraphicContext, TRenderingOptionsRestoreGraphicContext.)
Public methodSaveGraphicContext
Pushes a copy of the entire graphics context onto the stack.
(Overrides DeviceTGraphicContext, TRenderingOptionsSaveGraphicContext.)
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.
(Overrides DeviceTGraphicContext, TRenderingOptionsStroke.)
Public methodStrokeAndFill
Strokes and fill current path. This method terminates current path.
(Overrides DeviceTGraphicContext, TRenderingOptionsStrokeAndFill(FillMode).)
Public methodStrokeText
Strokes the specified text string at the specified location.
(Overrides DeviceTGraphicContext, TRenderingOptionsStrokeText(String, PointF).)
Public methodToString (Inherited from Object.)
See Also