CairoImageSurface::getFormat

(PECL cairo >= 0.1.0)

CairoImageSurface::getFormatGet the image format

설명

public int CairoImageSurface::getFormat ( void )

Retrieves the image format, as one of the CairoFormat defined

인수

이 함수는 인수가 없습니다.

반환값

One of the CairoFormat enums

예제

Example #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

?>

위 예제의 출력 예시:

int(0)
int(2)

참고

add a note add a note

User Contributed Notes

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