PageCamera class
The camera an export paints a page through (spec 13 D2).
Its screen is the sheet itself: (0, 0) is the sheet's top-left corner,
y runs down, there is no margin, and one unit is 1 / pixelsPerPaperMm
paper millimetres -- a point for the PDF, a pixel for the PNG.
- Annotations
Constructors
- PageCamera({required ViewportTransform camera, required Size size, required double pixelsPerPaperMm})
-
const
Properties
- camera → ViewportTransform
-
World to sheet, y flipped.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- pixelsPerPaperMm → double
-
The output unit per paper millimetre,
u. Lineweight is paper-based, so this, not the camera's scale, sets a stroke's width.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → Size
-
The effective sheet in output units, unrounded: a PNG rounds its
own pixel size, and the last column is then a part pixel at most.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited