/**
 * Set Canvas pixel width.
 * 
 * @param int $value Canvas pixel width.
 * 
 * @access public
 */
public function pixelWidth(int $value): self

Examples

Set Canvas element pixel width using fluent interface

use function Thermage\canvas;
use function Thermage\render;

// ...

render(
  canvas()->pixelWidth(3)->pixel(0, 0, 'green')
);
Terminal
$ php thermage.php

Default Canvas element pixel width is 3.