downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

CairoImageSurface::getHeight> <CairoImageSurface::getData
[edit] Last updated: Fri, 17 May 2013

view this page in

CairoImageSurface::getFormat

(PECL cairo >= 0.1.0)

CairoImageSurface::getFormatObtener el formato de imagen

Descripción

public int CairoImageSurface::getFormat ( void )

Recupera el formato de imagen, como uno de los definidos en CairoFormat

Parámetros

Esta función no tiene parámetros.

Valores devueltos

Una de las enumeraciones de CairoFormat

Ejemplos

Ejemplo #1 Ejemplo de CairoImageSurface::getFormat()

<?php

$superficie 
= new CairoImageSurface(CairoFormat::ARGB325050);

var_dump($superficie->getFormat()); // 0

$superficie2 = new CairoImageSurface(CairoFormat::A85050);

var_dump($superficie2->getFormat()); // 2

?>

El resultado del ejemplo sería algo similar a:

int(0)
int(2)

Ver también



add a note add a note User Contributed Notes CairoImageSurface::getFormat - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites