略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: CairoContext::fillPreserve

2024-03-28

CairoContext::fillPreserve

cairo_fill_preserve

(PECL cairo >= 0.1.0)

CairoContext::fillPreserve -- cairo_fill_preserveFills and preserve the current path

说明

面向对象风格 (method):

public CairoContext::fillPreserve ( void ) : void

过程化风格:

cairo_fill_preserve ( CairoContext $context ) : void

A drawing operator that fills the current path according to the current CairoFillRule, (each sub-path is implicitly closed before being filled). Unlike CairoContext::fill(), CairoContext::fillPreserve() (Procedural cairo_fill(), cairo_fill_preserve(), respectively) preserves the path within the Context.

参数

context

A valid CairoContext object created with CairoContext::__construct() or cairo_create()

返回值

没有返回值。

范例

Example #1 面向对象风格

<?php
/* ... */
?>

以上例程的输出类似于:

...

Example #2 过程化风格

<?php
/* ... */
?>

以上例程的输出类似于:

...

参见

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/cairocontext.fillpreserve.php

冷却塔厂家 广告
-- 广告
北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3