ImageInfo
in package
FinalYes
Parsed image header metadata — everything needed to build a PDF ImageXObject without decoding pixel data.
Table of Contents
Properties
- $bitsPerComponent : int
- $colorSpace : string
- $format : string
- $hasAlpha : bool
- $height : int
- $iccProfile : string|null
- $width : int
- $xDpi : int|null
- $yDpi : int|null
Methods
- __construct() : mixed
Properties
$bitsPerComponent read-only
public
int
$bitsPerComponent
$colorSpace read-only
public
string
$colorSpace
$format read-only
public
string
$format
$hasAlpha read-only
public
bool
$hasAlpha
= false
$height read-only
public
int
$height
$iccProfile read-only
public
string|null
$iccProfile
= null
$width read-only
public
int
$width
$xDpi read-only
public
int|null
$xDpi
= null
$yDpi read-only
public
int|null
$yDpi
= null
Methods
__construct()
public
__construct(int $width, int $height, string $colorSpace, int $bitsPerComponent, string $format[, bool $hasAlpha = false ][, int|null $xDpi = null ][, int|null $yDpi = null ][, string|null $iccProfile = null ]) : mixed
Parameters
- $width : int
- $height : int
- $colorSpace : string
- $bitsPerComponent : int
- $format : string
- $hasAlpha : bool = false
- $xDpi : int|null = null
- $yDpi : int|null = null
- $iccProfile : string|null = null