CairoSurface::writeToPng
CairoSvgSurface::__construct
Cairo
PHP Manual

# Svg サーフェイスバックエンド

(PECL cairo >= 0.1.0)

## 導入

Svg 専用のサーフェイスクラスで、SVG (standard vector graphics) サーフェイスバックエンドを使います。

## クラス概要

CairoSvgSurface extends CairoSurface {
/* メソッド */
public __construct ( string `$file` , float `$width` , float `$height` )
public static array getVersions ( void )
public void restrictToVersion ( string `$version` )
public static string versionToString ( int `$version` )
/* 継承したメソッド */
public CairoSurface::__construct ( void )
public void CairoSurface::copyPage ( void )
public void CairoSurface::createSimilar ( CairoSurface `$other` , int `$content` , string `$width` , string `$height` )
public void CairoSurface::finish ( void )
public void CairoSurface::flush ( void )
public int CairoSurface::getContent ( void )
public array CairoSurface::getDeviceOffset ( void )
public void CairoSurface::getFontOptions ( void )
public int CairoSurface::getType ( void )
public void CairoSurface::markDirty ( void )
public void CairoSurface::markDirtyRectangle ( string `$x` , string `$y` , string `$width` , string `$height` )
public void CairoSurface::setDeviceOffset ( string `$x` , string `$y` )
public void CairoSurface::setFallbackResolution ( string `$x` , string `$y` )
public void CairoSurface::showPage ( void )
public int CairoSurface::status ( void )
public void CairoSurface::writeToPng ( string `$file` )
}

## 目次

- CairoSvgSurface::__construct — The __construct purpose
- CairoSvgSurface::getVersions — Used to retrieve a list of supported SVG versions
- CairoSvgSurface::restrictToVersion — The restrictToVersion purpose
- CairoSvgSurface::versionToString — The versionToString purpose

CairoSurface::writeToPng
CairoSvgSurface::__construct
Cairo
PHP Manual