Class ImageDevice

ImageDevice class

Implements the interface for outputting text and graphic content to image(s).

public class ImageDevice : Device


ImageDevice(bool)Creates a new instance. The output file will be written to the output working directory taking the job name as a file name.


override DestinationName { get; }Gets destination name: output file name or device description.
override Fill { get; set; }Gets/sets the current fill.
override FillOpacity { get; set; }Gets/sets the current fill opacity.
override IsReady { get; }Shows if device is ready for output.
override PageCount { get; }Gets the number of pages.
Result { get; }Returns the resulting images byte arrays. The first dimension is for inner documents and the second one is for pages within inner documents.
override Stroke { get; set; }Gets/sets the current stroke.
override StrokeOpacity { get; set; }Gets/sets the current stroke opacity.


override AddHyperlink(RectangleF, Pen, string)Set the hyperlink with a URI as its target.
override Create()Creates a copy of this device.
override Dispose()Disposes this device instance. Finalizes this device instance graphics state, i.e. switches composing context to the level higher then this device’s graphics state.
override DrawPath(GraphicsPath)Draws a path.
override DrawString(string, float, float, List<GlyphData>)Draws a text string.
override EndDocument()Finalizes the whole document.
override EndPage()Finalizes a page.
override FillPath(GraphicsPath)Fill a path.
override Initialize()Initializes the device.
override SetClip(GraphicsPath)Sets the current clip path.
override SetTransform(Matrix)Sets the current coordinate space transformation.
override ShowImage(PointF, SizeF, byte[])Shows a raster image.
override StartDocument()Starts the whole document.
override StartPage(float, float)Starts a new page.

See Also