ImageRendererInterface
Less than 1 minute
ImageRendererInterface
- Full name:
\Hazaar\File\Renderer\ImageRendererInterface
Methods
load
public load(string $bytes, string $type): int
Parameters:
Parameter | Type | Description |
---|---|---|
$bytes | string | |
$type | string |
loaded
public loaded(): bool
read
public read(): false|string
quality
public quality(int $quality = null): false|int
Parameters:
Parameter | Type | Description |
---|---|---|
$quality | int |
width
public width(): int
height
public height(): int
compress
public compress(int $quality): void
Parameters:
Parameter | Type | Description |
---|---|---|
$quality | int |
resize
public resize(int $width = null, int $height = null, bool $crop = false, string $align = null, bool $keep_aspect = true, bool $reduce_only = true, float $ratio = null, int $offsetTop, int $offsetLeft): bool
Parameters:
Parameter | Type | Description |
---|---|---|
$width | int | |
$height | int | |
$crop | bool | |
$align | string | |
$keep_aspect | bool | |
$reduce_only | bool | |
$ratio | float | |
$offsetTop | int | |
$offsetLeft | int |
expand
public expand(int $xwidth = null, int $xheight = null, string $align = 'topleft', int $offsetTop, int $offsetLeft): bool
Parameters:
Parameter | Type | Description |
---|---|---|
$xwidth | int | |
$xheight | int | |
$align | string | |
$offsetTop | int | |
$offsetLeft | int |
Automatically generated on 2024-11-14