private BaseRenderer $renderer
public __construct(?string $filename, ?int $quality, ?Manager $manager, string $renderer = 'default'): void
| Parameter | Type | Description |
|---|
$filename | string | |
$quality | int | |
$manager | Manager | |
$renderer | string | |
public setContents(?string $bytes): int
| Parameter | Type | Description |
|---|
$bytes | string | |
public getContents(int $offset = -1, ?int $maxlen): string
| Parameter | Type | Description |
|---|
$offset | int | |
$maxlen | int | |
public quality(?int $quality): int
| Parameter | Type | Description |
|---|
$quality | int | |
public hasContents(): bool
public resize(?int $width, ?int $height, bool $crop, ?string $align, bool $keepAspect = true, bool $reduceOnly = true, ?float $ratio, int $offsetTop, int $offsetLeft): bool
| Parameter | Type | Description |
|---|
$width | int | |
$height | int | |
$crop | bool | |
$align | string | |
$keepAspect | bool | |
$reduceOnly | bool | |
$ratio | float | |
$offsetTop | int | |
$offsetLeft | int | |
public expand(?int $xwidth, ?int $xheight, string $align = 'topleft', int $offsetTop, int $offsetLeft): bool
| Parameter | Type | Description |
|---|
$xwidth | int | |
$xheight | int | |
$align | string | |
$offsetTop | int | |
$offsetLeft | int | |
private getRenderer(string $renderer, ?int $quality): BaseRenderer
| Parameter | Type | Description |
|---|
$renderer | string | |
$quality | int | |
private checkLoaded(): void
Generated by Hazaar API Doc Generator on Wed, 07 Jan 2026 11:29:59 +0000