public class PaperSize
extends java.lang.Object
Constructor and Description |
---|
PaperSize(int twainPaperValue,
java.lang.String name,
int widthMm,
int heightMm,
double widthInches,
double heightInches) |
Modifier and Type | Method and Description |
---|---|
double |
getHeightInches() |
int |
getHeightMm() |
java.lang.String |
getName() |
static PaperSize |
getPaperSize(double widthInches,
double heightInches)
Returns the paper size of the corresponding width/height with error range 2% or null if there is no close size.
|
static PaperSize |
getPaperSize(int twainPaperValue)
Returns the first paper size with the given twain value or null if there is no close size.
|
static PaperSize |
getPaperSize(int widthMm,
double heightMm)
Returns the paper size of the corresponding width/height with error range 2% or null if there is no close size.
|
static java.util.List<PaperSize> |
getPredefinedPaperSizes()
Get list of pre-defined paper sizes.
|
int |
getTwainPaperValue() |
double |
getWidthInches() |
int |
getWidthMm() |
public PaperSize(int twainPaperValue, java.lang.String name, int widthMm, int heightMm, double widthInches, double heightInches)
public static PaperSize getPaperSize(int twainPaperValue)
public static PaperSize getPaperSize(double widthInches, double heightInches)
public static PaperSize getPaperSize(int widthMm, double heightMm)
public static java.util.List<PaperSize> getPredefinedPaperSizes()
public java.lang.String getName()
public int getWidthMm()
public int getHeightMm()
public double getWidthInches()
public double getHeightInches()
public int getTwainPaperValue()
v12.0.5.0 | Copyright © Asprise Software. All Rights Reserved. Please visit the product page at asprise.com