CairoImageSurface::getFormat

(PECL cairo >= 0.1.0)

CairoImageSurface::getFormatGet the image format

Opis

public CairoImageSurface::getFormat ( void ) : int

Retrieves the image format, as one of the CairoFormat defined

Parametry

Ta funkcja nie posiada parametrów.

Zwracane wartości

One of the CairoFormat enums

Przykłady

Przykład #1 CairoImageSurface::getFormat() example

<?php

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

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

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

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

?>

Powyższy przykład wyświetli coś podobnego do:

int(0)
int(2)

Zobacz też:

add a note add a note

User Contributed Notes

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