Class ImageDevice
ImageDevice class
This class encapsulates rendering of document to image.
[Obsolete("ImageDevice class is deprecated beginning from 24.3. Please use SaveAsImage method in PsDocument class instead. In 24.6 this class will be entirely hidden")]
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 |
---|
virtual CurrentPageNumber { get; } | Current page number. |
ImagesBytes { get; } | Returns resulting images in bytes, one byte array for one page. |
Methods
Name | Description |
---|
virtual ClosePage() | Makes necessary preparation of the device after page has been rendered. |
virtual InitPageNumbers() | Initializes numbers of pages to output. |
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 ToString() | Returns the name of device type. |
virtual UpdatePageParameters(IMultiPageDevice) | Updates page parameters from other multi-paged device. |
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