• 首页
  • vue
  • TypeScript
  • JavaScript
  • scss
  • css3
  • html5
  • php
  • MySQL
  • redis
  • jQuery
  • CairoSurface::__construct()

    (PECL cairo >= 0.1.0)

    The __construct purpose

    说明

    publicCairoSurface::__construct(void)

    CairoSurface is an abstract type and, as such, should not be instantiated in your PHP scripts.

    参数

    此函数没有参数。

    返回值

    No return value

    注释

    Note:

    If you're using a PHP version before 5.3, you must destroy the CairoContext associated with a CairoSurfaceafteryou destroy the CairoSurface. Otherwise, you're left with a Circular-reference memory leak.

    参见

    • CairoImageSurface::__construct() Creates a new CairoImageSurface