update : 2015.11.03
php.shukuma.com

검색:
 
 
Creates a new CairoContext

CairoContext::__construct

(PECL cairo >= 0.1.0)

CairoContext::__constructCreates a new CairoContext

설명

public CairoContext::__construct ( CairoSurface $surface )

Creates a new CairoContext object to draw

인수

surface

A valid CairoSurface like CairoImageSurface or CairoPdfSurface

반환값

A CairoContext

예제

Example #1 CairoContext::__construct() example

<?php
// The surface to work on
$surface = new CairoImageSurface(CairoFormat::ARGB325050);

// Create a new CairoContext for the CairoSurface
$context = new CairoContext($surface);

?>

참고

  • Cairo::Method()