Table of Contents

Class CadPaper

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

A sheet of paper a plot is laid on, as the Paper size list of AutoCAD's Plot dialog offers it: its name, its size in millimetres as the name gives it, width then height, and the margins its plotter cannot print in. ISO A3 is 420 by 297 with margins of 5 all round, a printable area of 410 by 287.

public sealed class CadPaper
Inheritance
CadPaper
Inherited Members

Constructors

CadPaper(string, double, double, double, double, double, double)

Makes a sheet.

Fields

MaxPixels

The most pixels a side of an image may have: 8 000.

MinPixels

The fewest pixels a side of an image may have: 16.

Properties

CanonicalName

Gets the name as a DXF keeps it in a layout's group 4, AutoCAD's CanonicalMediaName: the name's spaces as underscores, then the size, ISO_A3_(420.00_x_297.00_MM). An image is named the same way, 1920_x_1080_Pixels_(1920.00_x_1080.00_MM), the DXF layer taking a name that ends in a size alone; the layout keeps its units as pixels (group 72 = 2), which Read(CadDocument, CadSpace) reads back as the image's size.

CustomPixelsChoice

Gets the last entry of the Paper size list of a raster device, "Custom…", which asks for a width and a height; it is no size to plot on.

Default

Gets the sheet of a plot when nothing else is given: ISO A3.

DefaultPixels

Gets the size of an image a raster device starts on: 1920 by 1080 pixels, Full HD.

Height

Gets the height in millimetres: 297 for ISO A3.

IsCustomChoice

Gets whether this is CustomPixelsChoice.

IsPixels

Gets whether this is the size of an image for the raster devices, OpenCAD2D PNG and JPG: its width and height are then pixels rather than millimetres, and it has no margins, the whole image being printable.

Label

Gets the name as the Paper size list shows it: ISO A3 (420.00 x 297.00 MM), or for an image 1920 x 1080 Pixels (Full HD).

MarginBottom

Gets the margin at the bottom, in millimetres.

MarginLeft

Gets the margin at the left of the sheet as named, in millimetres.

MarginRight

Gets the margin at the right, in millimetres.

MarginTop

Gets the margin at the top, in millimetres.

Name

Gets the name shown, as "ISO A3", or for an image "1920 x 1080 Pixels".

PixelSizes

Gets the sizes of an image the raster devices offer, in the order of the list: 1280 by 720 (HD), 1600 by 1200 (UXGA), 1920 by 1080 (Full HD), 2560 by 1440 (QHD) and 3840 by 2160 (4K UHD).

Standard

Gets the sheets the built-in PDF plotter offers, in the order of the list: ISO A0 to A4 (1 189 by 841 to 297 by 210) and ANSI A to E (279.4 by 215.9 to 1 117.6 by 863.6), each on its side, with margins of 5 all round.

Width

Gets the width in millimetres, as the name gives it: 420 for ISO A3.

Methods

IsSameAs(CadPaper)

Gets whether another sheet is this one: the same name, letters of either case the same, and the same size and margins to a thousandth of a millimetre.

Pixels(int, int)

Makes a size of an image of the user's own, as Custom Image Size makes it: 2480 x 1754 Pixels (Custom).

ToString()