ImageDevice

ImageDevice class

This class encapsulates rendering of document to image.

public class ImageDevice : Device, IMultiPageDevice

Constructors

Name Description
ImageDevice() Initializes new instance of ImageDevice.
ImageDevice(ImageFormat) Initializes new instance of ImageDevice with specified image format.
ImageDevice(Size) Initializes new instance of ImageDevice with specified size of a page.
ImageDevice(Size, ImageFormat) Initializes new instance of ImageDevice with specified size of a page and image format.

Properties

Name Description
override Background { get; set; } Indicates whether device uses direct RGB mode, that is RGB.
override CharTM { get; set; } Returns or specifies current characters transform.
Creator { get; set; } Returns or specifies creator of resulting device output.
virtual CurrentPageNumber { get; } Current page number.
override Font { get; set; } Returns or specifies current font.
Format { get; } Image format.
ImagesBytes { get; } Returns resulting images in bytes, one byte array for one page.
override IsDirectRGB { get; } Indicates whether device uses direct RGB mode, that is RGB.
IsLicensed { get; } Indicates whether this instance of Aspose.Page library is licensed.
override Opacity { get; set; } Returns or specifies current background of the page.
virtual OpacityMask { get; set; } Returns or specifies current opacity mask.
override Paint { get; set; } Returns or specifies current paint.
Properties { get; set; } Device properties including metadata.
override SaveOptions { set; } Options for managing rendering process.
override Size { get; set; } Returns or specifies a size of the page.
override Stroke { get; set; } Returns or specifies current stroke.
override TextRenderingMode { get; set; } Returns or specifies current text rendering mode.
override TextStrokeWidth { get; set; } Returns or specifies current text stroke width.

Methods

Name Description
virtual ClosePage() Makes necessary preparation of the device after page has been rendered.
override Create() Creates a copy of this device.
override Dispose() Disposes the device.
override Draw(GraphicsPath) Draws a path.
virtual DrawArc(double, double, double, double, double, double) Draws an arc.
override DrawImage(Bitmap, Matrix, Color) Draws an image with assigned transform and background.
virtual DrawLine(double, double, double, double) Draws a line segment.
virtual DrawOval(double, double, double, double) Draws an oval.
virtual DrawPolygon(double[], double[], int) Draws a poligone.
virtual DrawPolygon(int[], int[], int) Draws a polygon.
virtual DrawPolyline(double[], double[], int) Draws a polyline.
virtual DrawPolyline(int[], int[], int) Draws a polyline.
virtual DrawRect(double, double, double, double) Draws a rectangle.
virtual DrawRoundRect(double, double, double, double, double, double) Draws a round rectangle.
override DrawString(string, double, double) Draws a string at given point.
override EndDocument() Makes necessary preparation of device after the document has been rendered.
override Fill(GraphicsPath) Fills a path.
virtual FillArc(double, double, double, double, double, double) Fills an arc.
virtual FillOval(double, double, double, double) Fills an oval.
virtual FillPolygon(double[], double[], int) Fills a poligone.
virtual FillPolygon(int[], int[], int) Fills a poligone.
virtual FillRect(double, double, double, double) Fills a rectangle.
virtual FillRoundRect(double, double, double, double, double, double) Fills a round rectangle.
GetProperty(string) Gets a value of string property. (2 methods)
GetPropertyColor(string) Gets a value of color property. (2 methods)
GetPropertyDouble(string) Gets a value of double property. (2 methods)
GetPropertyInt(string) Gets a value of integer property. (2 methods)
GetPropertyMargins(string) Gets a value of margins property. (2 methods)
GetPropertyRectangle(string) Gets a value of rectangle property. (2 methods)
GetPropertySize(string) Gets a value of size property. (2 methods)
override GetTransform() Gets the current transform.
override InitClip() Initializes a clip of the device.
virtual InitPageNumbers() Initializes numbers of pages to output.
IsProperty(string) Gets a value of boolean property. (2 methods)
virtual OpenPage(string) Makes necessary preparation of the device before page rendering.
virtual OpenPage(float, float) Makes necessary preparation of the device before each page rendering.
override ReNew() Reset device to initial state for whole document.
override Reset() Reset the device to initial state for a page.
override Rotate(double) Rotate the current transformation matrix over the Z-axis. Calls writeTransform(Transform). Rotating with a positive angle theta rotates points on the positive x axis toward the positive y axis.
virtual Rotate(double, double, double) Rotate the current transformation matrix around a point.
override Scale(double, double) Scales the current transformation matrix. Calls writeTransform(Transform).
override SetClip(GraphicsPath) Clips shape.
override SetTransform(Matrix) Specifies current transform.
override Shear(double, double) Shears the current transformation matrix. Calls writeTransform(Transform).
override StartDocument() Makes necessary preparation of device before start rendering of document.
override ToString() Returns the name of device type.
override Transform(Matrix) Transforms the current transformation matrix. Calls writeTransform(Transform).
override Translate(double, double) Translates the current transformation matrix. Calls writeTransform(Transform).
virtual UpdatePageParameters(IMultiPageDevice) Updates page parameters from other multi-paged device.
override WriteComment(string) Writes a comment.

Fields

Name Description
static readonly BACKGROUND “Background” property key.
static readonly BACKGROUND_COLOR “Background color” property key.
static readonly EMBED_FONTS “Embed font in document” property key.
static readonly EMIT_ERRORS “Emit errors” property value.
static readonly EMIT_WARNINGS “Emit warnings” property value.
static readonly FIT_TO_PAGE “Fit content to page” property key.
static readonly ORIENTATION “Orientation” property key.
static readonly PAGE_MARGINS “Page margins” property key.
static readonly PAGE_SIZE “Page size” property key.
static readonly PRODUCER “Producer” property value.
static readonly TRANSPARENT “Transparent” property key.

See Also