Imagick::queryFormats

(PECL imagick 2, PECL imagick 3)

Imagick::queryFormatsImagick tarafından desteklenen biçemleri döndürür

Açıklama

public static Imagick::queryFormats(string $şablon = "*"): array

Imagick tarafından desteklenen biçemleri döndürür.

Değiştirgeler

şablon

Dönen Değerler

Imagick tarafından desteklenen biçemleri içeren bir dizi döndürür.

Hatalar/İstisnalar

Hata durumunda bir ImagickException istisnası oluşur.

Örnekler

Örnek 1 - Imagick::queryFormats() örneği

<?php
    
function render() {
        
$output "";
        
$input = \Imagick::queryformats();
        
$columns 6;

        
$output .= "<table border='2'>";

        for (
$i=0$i count($input); $i += $columns) {
            
$output .= "<tr>";
            for (
$c=0$c<$columns$c++) {
                
$output .= "<td>";
                if ((
$i $c) <  count($input)) {
                    
$output .= $input[$i $c];
                }
                
$output .= "</td>";
            }
            
$output .= "</tr>";
        }

        
$output .= "</table>";

        return 
$output;
    }

?>

add a note add a note

User Contributed Notes

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