Class CadImageJob
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
An image PNGOUT, JPGOUT or BMPOUT hands to the window (Image): the space and the view the drawing area shows, the file, and the objects selected. The window first fills FileName from its Create Raster File dialog; then it draws the view at the drawing area's size, as it is shown but with no cursor, grips or highlight, and writes the file. A view of 1 200 by 800 pixels gives an image of 1 200 by 800.
public sealed class CadImageJob
- Inheritance
-
CadImageJob
- Inherited Members
Constructors
- CadImageJob(CadImageFormat, CadSpace, CadView)
Makes an image to hand to the window.
Properties
- Extension
Gets the extension of the file, with its dot: .png, .jpg or .bmp.
- FileName
Gets or sets the file to write. The command sets the one it offers before asking the window, which sets the one its dialog chose, or null where it was cancelled.
- Format
Gets the kind of file.
- Handles
Gets the handles of the objects selected, in ordinal order; null for all objects and viewports.
- PixelHeight
Gets the height of the image in pixels: the view's, at least 1.
- PixelWidth
Gets the width of the image in pixels: the view's, at least 1.
- Space
Gets the space shown.
- View
Gets the view of the drawing area; with no window, one of 1 920 by 1 080 pixels showing the space's extents.