php man page for cairo_copy_path_flat

Query: cairo_copy_path_flat

OS: php

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

CAIRO_COPY_PATH_FLAT(3) 						 1						   CAIRO_COPY_PATH_FLAT(3)

CairoContext::copyPathFlat - Gets a flattened copy of the current path

       Object oriented style (method):

SYNOPSIS
public CairoPath CairoContext::copyPathFlat (void )
DESCRIPTION
Procedural style: CairoPath cairo_copy_path_flat (CairoContext $context) Gets a flattened copy of the current path and returns it to the user as a CairoPath. This function is like CairoContext::copyPath except that any curves in the path will be approximated with piecewise-linear approximations, (accurate to within the current tolerance value). That is, the result is guaranteed to not have any elements of type CAIRO_PATH_CURVE_TO which will instead be replaced by a series of CAIRO_PATH_LINE_TO elements.
PARAMETERS
o $context - A CairoContext object
RETURN VALUES
A copy of the current path
EXAMPLES
Example #1 Object oriented style <?php $surface = new CairoImageSurface(CairoFormat::ARGB32, 50, 50); $context = new CairoContext($surface); var_dump($context->copyPathFlat()); ?> The above example will output something similar to: object(CairoPath)#3 (0) { } Example #2 Procedural style <?php $surface = cairo_image_surface_create(CAIRO_FORMAT_ARGB32, 50, 50); $context = cairo_create($surface); var_dump(cairo_copy_path_flat($context)); ?> The above example will output something similar to: object(CairoPath)#3 (0) { }
SEE ALSO
CairoContext::copyPath, CairoContext::closePath. PHP Documentation Group CAIRO_COPY_PATH_FLAT(3)
Related Man Pages
cairo_status_to_string(3) - php
cairo_set_font_face(3) - php
cairo_append_path(3) - php
cairo_clip_preserve(3) - php
cairo_copy_path_flat(3) - php
Similar Topics in the Unix Linux Community
UNIX.COM 2017 Year End Summary
Please Welcome Don Cragun as Lead Moderator
Status of UNIX.COM Forum Transformation
The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to Don Cragun
The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to Wolf Machowitsch