public static class AddDimensionedImage.ConvertImageUnits extends Object
Modifier and Type | Field and Description |
---|---|
static double |
CELL_BORDER_WIDTH_MILLIMETRES |
static short |
EXCEL_COLUMN_WIDTH_FACTOR |
static int |
PIXELS_PER_INCH |
static double |
PIXELS_PER_MILLIMETRES |
static double |
POINTS_PER_MILLIMETRE |
static int |
TOTAL_COLUMN_COORDINATE_POSITIONS |
static int |
TOTAL_ROW_COORDINATE_POSITIONS |
static int |
UNIT_OFFSET_LENGTH |
static int[] |
UNIT_OFFSET_MAP |
Constructor and Description |
---|
ConvertImageUnits() |
Modifier and Type | Method and Description |
---|---|
static int |
millimetres2WidthUnits(double millimetres)
Convert into millimetres Excels width units..
|
static short |
pixel2WidthUnits(int pxs)
pixel units to excel width units(units of 1/256th of a character
width)
|
static double |
pointsToMillimeters(double points) |
static int |
pointsToPixels(double points) |
static double |
widthUnits2Millimetres(short widthUnits)
Convert Excels width units into millimetres.
|
static int |
widthUnits2Pixel(short widthUnits)
excel width units(units of 1/256th of a character width) to pixel
units.
|
public static final int TOTAL_COLUMN_COORDINATE_POSITIONS
public static final int TOTAL_ROW_COORDINATE_POSITIONS
public static final int PIXELS_PER_INCH
public static final double PIXELS_PER_MILLIMETRES
public static final double POINTS_PER_MILLIMETRE
public static final double CELL_BORDER_WIDTH_MILLIMETRES
public static final short EXCEL_COLUMN_WIDTH_FACTOR
public static final int UNIT_OFFSET_LENGTH
public static final int[] UNIT_OFFSET_MAP
public static short pixel2WidthUnits(int pxs)
pxs
- public static int widthUnits2Pixel(short widthUnits)
widthUnits
- public static double widthUnits2Millimetres(short widthUnits)
widthUnits
- The width of the column or the height of the row in Excels
units.public static int millimetres2WidthUnits(double millimetres)
millimetres
- A primitive double that contains the columns width or rows
height in millimetres.public static int pointsToPixels(double points)
public static double pointsToMillimeters(double points)
Copyright © 2004–2020 Ideaconsult Ltd.. All rights reserved.