ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Static Public Member Functions | |
static | pixelsToEMU ($pValue) |
Convert pixels to EMU. More... | |
static | EMUToPixels ($pValue) |
Convert EMU to pixels. More... | |
static | pixelsToCellDimension ($pValue, \PhpOffice\PhpSpreadsheet\Style\Font $pDefaultFont) |
Convert pixels to column width. More... | |
static | cellDimensionToPixels ($pValue, \PhpOffice\PhpSpreadsheet\Style\Font $pDefaultFont) |
Convert column width from (intrinsic) Excel units to pixels. More... | |
static | pixelsToPoints ($pValue) |
Convert pixels to points. More... | |
static | pointsToPixels ($pValue) |
Convert points to pixels. More... | |
static | degreesToAngle ($pValue) |
Convert degrees to angle. More... | |
static | angleToDegrees ($pValue) |
Convert angle to degrees. More... | |
static | imagecreatefrombmp ($p_sFile) |
Create a new image from file. More... | |
Definition at line 7 of file Drawing.php.
|
static |
Convert angle to degrees.
int | $pValue | Angle |
Definition at line 141 of file Drawing.php.
Referenced by PhpOffice\PhpSpreadsheet\Reader\Xlsx\getFromZipArchive().
|
static |
Convert column width from (intrinsic) Excel units to pixels.
float | $pValue | Value in cell dimension |
\PhpOffice\PhpSpreadsheet\Style\Font | $pDefaultFont | Default font of the workbook |
Definition at line 73 of file Drawing.php.
References PhpOffice\PhpSpreadsheet\Shared\Font\$defaultColumnWidths, $name, and $size.
Referenced by PhpOffice\PhpSpreadsheet\Shared\Xls\sizeCol().
|
static |
Convert degrees to angle.
int | $pValue | Degrees |
Definition at line 129 of file Drawing.php.
|
static |
Convert EMU to pixels.
int | $pValue | Value in EMU |
Definition at line 28 of file Drawing.php.
Referenced by PhpOffice\PhpSpreadsheet\Reader\Xlsx\getFromZipArchive().
|
static |
Create a new image from file.
By alexander at alexauto dot nl.
string | $p_sFile | Path to Windows DIB (BMP) image |
Definition at line 159 of file Drawing.php.
|
static |
Convert pixels to column width.
Exact algorithm not known. By inspection of a real Excel file using Calibri 11, one finds 1000px ~ 142.85546875 This gives a conversion factor of 7. Also, we assume that pixels and font size are proportional.
int | $pValue | Value in pixels |
\PhpOffice\PhpSpreadsheet\Style\Font | $pDefaultFont | Default font of the workbook |
Definition at line 47 of file Drawing.php.
References PhpOffice\PhpSpreadsheet\Shared\Font\$defaultColumnWidths, $name, and $size.
Referenced by PhpOffice\PhpSpreadsheet\Shared\Font\calculateColumnWidth().
|
static |
Convert pixels to EMU.
int | $pValue | Value in pixels |
Definition at line 16 of file Drawing.php.
|
static |
Convert pixels to points.
int | $pValue | Value in pixels |
Definition at line 101 of file Drawing.php.
|
static |
Convert points to pixels.
int | $pValue | Value in points |
Definition at line 113 of file Drawing.php.
Referenced by PhpOffice\PhpSpreadsheet\Shared\Xls\sizeRow().