Table of Contents

Method Footprint

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

Footprint(CadPlotPage, double, double)

Where a block of the stamp's size stands on a sheet, as a box in the millimetres of the sheet, Y upward from its lower left corner: in Location's corner of the printable area, or of the whole sheet where OffsetFromPaperBorder, in by the offset on both sides. A Vertical stamp has its width and height changed over, as it lies on the sheet.

public DisplayBox Footprint(CadPlotPage page, double width, double height)

Parameters

page CadPlotPage

The plot laid on its sheet.

width double

The width of the block of text, in millimetres.

height double

The height of the block of text, in millimetres.

Returns

DisplayBox

The box the stamp takes.

Exceptions

ArgumentNullException

Thrown when the page is null.

Footprint(CadPlotPage, double, double, bool, double)

Where a block of the stamp's size stands on a sheet, as Footprint(CadPlotPage, double, double), the corner taken of the image as plotted, as AutoCAD's help puts it: a plot upside down turns the sheet half round, so that a stamp at the lower left stands at the upper right of the sheet; and the sheet's units given, a sheet of pixels at 96 to the inch (OpenCAD2D PNG and JPG) taking 96 / 25.4 to the millimetre.

public DisplayBox Footprint(CadPlotPage page, double width, double height, bool plotUpsideDown, double unitsPerMillimetre)

Parameters

page CadPlotPage

The plot laid on its sheet.

width double

The width of the block of text, in millimetres.

height double

The height of the block of text, in millimetres.

plotUpsideDown bool

Whether the plot is upside down (UpsideDown).

unitsPerMillimetre double

The sheet's units to a millimetre: 1 for a sheet in millimetres.

Returns

DisplayBox

The box the stamp takes, in the sheet's units, Y upward from its lower left corner.

Exceptions

ArgumentNullException

Thrown when the page is null.

ArgumentOutOfRangeException

Thrown when the units to a millimetre are not above nought.