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()