Documentation

MapImage
in package

Table of Contents

$encodedPixelCache  : string|null
$height  : int
$pixels  : array<string|int, mixed>
$width  : int
__construct()  : mixed
decode()  : self
encode()  : void
getHeight()  : int
getPixels()  : array<string|int, array<string|int, Color>>
getWidth()  : int

Properties

$encodedPixelCache

private string|null $encodedPixelCache = null

$pixels

private array<string|int, mixed> $pixels
Tags
phpstan-var

list<list<Color>>

Methods

__construct()

public __construct(array<string|int, array<string|int, Color>> $pixels) : mixed
Parameters
$pixels : array<string|int, array<string|int, Color>>
Tags
phpstan-param

list<list<Color>> $pixels

Return values
mixed

decode()

public static decode(BinaryStream $input, int $height, int $width) : self
Parameters
$input : BinaryStream
$height : int
$width : int
Return values
self

getHeight()

public getHeight() : int
Return values
int

getPixels()

public getPixels() : array<string|int, array<string|int, Color>>
Tags
phpstan-return

list<list<Color>>

Return values
array<string|int, array<string|int, Color>>

getWidth()

public getWidth() : int
Return values
int

Search results