Drawing
in package
Drawing.
Table of Contents
Constants
- DPI_96 = 96
Methods
- angleToDegrees() : int
- Convert angle to degrees.
- centimetersToPixels() : float
- Convert centimeters width to pixels.
- centimetersToTwips() : float
- Convert centimeters width to twips.
- degreesToAngle() : int
- Convert degrees to angle.
- emuToPixels() : int
- Convert EMU to pixels.
- htmlToRGB() : array<string|int, mixed>|false
- Convert HTML hexadecimal to RGB.
- inchesToTwips() : float
- Convert inches width to twips.
- pixelsToCentimeters() : float
- Convert pixels to centimeters.
- pixelsToEmu() : int
- Convert pixels to EMU.
- pixelsToPoints() : float
- Convert pixels to points.
- pointsToCentimeters() : float
- Convert points width to centimeters.
- pointsToPixels() : float
- Convert points width to pixels.
- twipsToCentimeters() : float
- Convert twips width to centimeters.
- twipsToInches() : float
- Convert twips width to inches.
- twipsToPixels() : float
- Convert twips width to pixels.
Constants
DPI_96
public
mixed
DPI_96
= 96
Methods
angleToDegrees()
Convert angle to degrees.
public
static angleToDegrees([int $pValue = 0 ]) : int
Parameters
- $pValue : int = 0
-
Angle
Return values
intcentimetersToPixels()
Convert centimeters width to pixels.
public
static centimetersToPixels([int $pValue = 0 ]) : float
Parameters
- $pValue : int = 0
-
Value in centimeters
Return values
floatcentimetersToTwips()
Convert centimeters width to twips.
public
static centimetersToTwips([int $pValue = 0 ]) : float
Parameters
- $pValue : int = 0
Return values
floatdegreesToAngle()
Convert degrees to angle.
public
static degreesToAngle([int $pValue = 0 ]) : int
Parameters
- $pValue : int = 0
-
Degrees
Return values
intemuToPixels()
Convert EMU to pixels.
public
static emuToPixels([int $pValue = 0 ]) : int
Parameters
- $pValue : int = 0
-
Value in EMU
Return values
inthtmlToRGB()
Convert HTML hexadecimal to RGB.
public
static htmlToRGB(string $pValue) : array<string|int, mixed>|false
Parameters
- $pValue : string
-
HTML Color in hexadecimal
Return values
array<string|int, mixed>|false —Value in RGB
inchesToTwips()
Convert inches width to twips.
public
static inchesToTwips([int $pValue = 0 ]) : float
Parameters
- $pValue : int = 0
Return values
floatpixelsToCentimeters()
Convert pixels to centimeters.
public
static pixelsToCentimeters([int $pValue = 0 ]) : float
Parameters
- $pValue : int = 0
-
Value in pixels
Return values
floatpixelsToEmu()
Convert pixels to EMU.
public
static pixelsToEmu([int $pValue = 0 ]) : int
Parameters
- $pValue : int = 0
-
Value in pixels
Return values
intpixelsToPoints()
Convert pixels to points.
public
static pixelsToPoints([int $pValue = 0 ]) : float
Parameters
- $pValue : int = 0
-
Value in pixels
Return values
floatpointsToCentimeters()
Convert points width to centimeters.
public
static pointsToCentimeters([int $pValue = 0 ]) : float
Parameters
- $pValue : int = 0
-
Value in points
Return values
floatpointsToPixels()
Convert points width to pixels.
public
static pointsToPixels([int $pValue = 0 ]) : float
Parameters
- $pValue : int = 0
-
Value in points
Return values
floattwipsToCentimeters()
Convert twips width to centimeters.
public
static twipsToCentimeters([int $pValue = 0 ]) : float
Parameters
- $pValue : int = 0
Return values
floattwipsToInches()
Convert twips width to inches.
public
static twipsToInches([int $pValue = 0 ]) : float
Parameters
- $pValue : int = 0
Return values
floattwipsToPixels()
Convert twips width to pixels.
public
static twipsToPixels([int $pValue = 0 ]) : float
Parameters
- $pValue : int = 0