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
$height
private
int
$height
$pixels
private
array<string|int, mixed>
$pixels
Tags
$width
private
int
$width
Methods
__construct()
public
__construct(array<string|int, array<string|int, Color>> $pixels) : mixed
Parameters
- $pixels : array<string|int, array<string|int, Color>>
Tags
Return values
mixed —decode()
public
static decode(BinaryStream $input, int $height, int $width) : self
Parameters
- $input : BinaryStream
- $height : int
- $width : int
Return values
self —encode()
public
encode(BinaryStream $output) : void
Parameters
- $output : BinaryStream
Return values
void —getHeight()
public
getHeight() : int
Return values
int —getPixels()
public
getPixels() : array<string|int, array<string|int, Color>>
Tags
Return values
array<string|int, array<string|int, Color>> —getWidth()
public
getWidth() : int