PHP 5.6.0beta1 released

CairoContext::getAntialias

cairo_get_antialias

(PECL cairo >= 0.1.0)

CairoContext::getAntialias -- cairo_get_antialiasRetrives the current antialias mode

Descrierea

Stil obiect-orientat (method):

public int CairoContext::getAntialias ( void )

Stil procedural:

Returns the current CairoAntialias mode, as set by CairoContext::setAntialias().

Parametri

context

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

Valorile întoarse

The current CairoAntialias mode.

Exemple

Example #1 Stil obiect-orientat

<?php

$surface 
= new CairoImageSurface(CairoFormat::ARGB325050);
$context = new CairoContext($surface);

$context->setAntialias(CairoAntialias::MODE_SUBPIXEL);

var_dump($context->getAntialias());

?>

Exemplul de mai sus va afișa ceva similar cu:

int(3)

Example #2 Stil procedural

<?php

$sur 
cairo_image_surface_create(CAIRO_FORMAT_ARGB325050);
$con cairo_create($sur);

cairo_set_antialias($conCAIRO_ANTIALIAS_SUBPIXEL);

var_dump(cairo_get_antialias($con));

?>

Exemplul de mai sus va afișa ceva similar cu:

int(3)

Vedeți de asemenea

add a note add a note

User Contributed Notes

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