PHPWales 2020 - June 3rd to June 4th

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

Примеры

Пример #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()

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top