GoLang CairoContext::__construct

request it (424)
GoLang replacement for PHP's CairoContext::__construct [edit | history]



Do you know a GoLang replacement for PHP's CairoContext::__construct? Write it!

PHP CairoContext::__construct

PHP original manual for CairoContext::__construct [ show | php.net ]

CairoContext::__construct

(PECL cairo >= 0.1.0)

CairoContext::__constructCreates a new CairoContext

Description

public CairoContext::__construct ( CairoSurface $surface )

Creates a new CairoContext object to draw

Parameters

surface

A valid CairoSurface like CairoImageSurface or CairoPdfSurface

Return Values

A CairoContext

Examples

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

?>

See Also

  • Cairo::Method()