(PECL cairo >= 0.1.0)
CairoImageSurface provide the ability to render to memory buffers either allocated by cairo or by the calling code. The supported image formats are those defined in CairoFormat.
$data
   , int $format
   , int $width
   , int $height
   [, int $stride = -1
  ] )$other
   , int $content
   , string $width
   , string $height
   )$x
   , string $y
   , string $width
   , string $height
   )