RleCanvas

2D canvas for writing RLE-encoded BMP data into. A cursor is moved based on the commands issued, and an Exception is thrown if the data goes outside the canvas boundary, or if the data continues after endOfBitmap is called.

Qualified name:Mike42\GfxPhp\Codec\Bmp\RleCanvas
class RleCanvas
__construct(int $width, int $height)
Parameters:
  • $width (int) –
  • $height (int) –
absolute(array $values)
Parameters:
  • $values (array) –
delta(int $deltaX, int $deltaY)
Parameters:
  • $deltaX (int) –
  • $deltaY (int) –
endOfBitmap()
endOfLine()
getContents()
repeat(int $val, int $times)
Parameters:
  • $val (int) –
  • $times (int) –
set(int $val)
Parameters:
  • $val (int) –