src/Rasterization/SVGRasterizer.php
private static function createImage($width, $height)
    {
        $img = imagecreatetruecolor($width, $height);

        imagealphablending($img, true);
        imagesavealpha($img, true);

        imagefill($img, 0, 0, 0x7F000000);

        return $img;
    }
private static function createImage($width, $height)
    {
        $img = imagecreatetruecolor($width, $height);

        imagealphablending($img, true);
        imagesavealpha($img, true);

        imagefill($img, 0, 0, 0x7F000000);

        return $img;
    }
private static function createImage ( $ width , $ height ) { $ img = imagecreatetruecolor ( $ width , $ height ) ; imagealphablending ( $ img , true ) ; imagesavealpha ( $ img , true ) ; imagefill ( $ img , 0 , 0 , 0x7F000000 ) ; return $ img ; }
Sets up a new truecolor GD image resource with the given dimensions.

The returned image supports and is filled with transparency.

@param int $width  The output image width, in pixels.
@param int $height The output image height, in pixels.

@return resource The created GD image resource.
Sets up a new truecolor GD image resource with the given dimensions .