scantools
1.0.7
Graphics manipulation with a view towards scanned documents
|
75 bool myOk =
setSize(formatString);
bool setSize(QString formatString)
Reads paperSize from a string.
length width() const
Width of the paper.
length height() const
Height of the paper.
paperSize()
Constructs empty paperSize.
format
List of supported standard sizes.
The length stores a length and converts between units.
void setSize(format f)
Sets paperSize to a given standard format.
paperSize(QString formatString, bool *ok=0)
Constructs paperSize from a string.
bool isNonPositive() const
Check if length is positive.
The paperSize class identifies and stores paper sizes.
paperSize(length width, length height)
Constructs paperSize of given width and height.
void setWidth(length width)
Sets paper width.
void setHeight(length height)
Sets paper height.
paperSize(format f)
Constructs paperSize for given standard format.
bool isEmpty() const
Checks for empty paper size.
@ Letter
US Standard Letter.