Latest web development tutorials
×

PHP Kurs

PHP Kurs PHP Kurze Einführung PHP installieren PHP Grammatik PHP Variable PHP echo/print PHP Datentypen PHP Konstante PHP Schnur PHP Die Betreiber PHP If...Else PHP Switch PHP Feld PHP Sortieren eines Array PHP Superglobals PHP While Verkehr PHP For Verkehr PHP Funktion PHP Magische Variablen PHP Namespaces PHP Objektorientiert

PHP Form

PHP Form PHP Formularauthentifizierung PHP Form - Erforderliche Felder PHP Form - Überprüfung E-Mail und URL PHP Komplette Formularinstanz PHP $_GET Variable PHP $_POST Variable

PHP Erweiterte Tutorial

PHP Mehrdimensionale Arrays PHP Datum PHP enthalten PHP Datei PHP Datei-Upload PHP Cookie PHP Session PHP E-mail PHP Sicherheit E-mail PHP Error PHP Exception PHP Filter PHP Erweiterte Filter PHP JSON

PHP 7 Neue Funktionen

PHP 7 Neue Funktionen

PHP Datenbank

PHP MySQL Kurze Einführung PHP MySQL Verbindung PHP MySQL Erstellen einer Datenbank PHP MySQL Erstellen Sie eine Datentabelle PHP MySQL einfügen von Daten PHP MySQL Legen Sie mehrere Daten PHP MySQL Prepared Statements PHP MySQL Lesen Sie Daten PHP MySQL WHERE PHP MySQL ORDER BY PHP MySQL UPDATE PHP MySQL DELETE PHP ODBC

PHP XML

XML Expat Parser XML DOM XML SimpleXML

PHP & AJAX

AJAX Kurze Einführung AJAX PHP AJAX Datenbank AJAX XML AJAX Echtzeitsuche AJAX RSS Reader AJAX Abstimmung

PHP Referenzhandbuch

PHP Array PHP Calendar PHP cURL PHP Date PHP Directory PHP Error PHP Filesystem PHP Filter PHP FTP PHP HTTP PHP Libxml PHP Mail PHP Math PHP Misc PHP MySQLi PHP PDO PHP SimpleXML PHP String PHP XML PHP Zip PHP Timezones PHP Bildverarbeitung PHP RESTful

PHP imagesx (), imagesy () - Gibt die Bildbreite und -höhe

PHP Get Bildbreite und -höhe

PHP Bildverarbeitung PHP Bildverarbeitung

PHP Get-Funktion Bildbreite: imagesx ()

imagesx () Funktion wird verwendet, um die Breite des Bildes in Pixeln zu erhalten, integer den Rückgabewert.

Syntax:

int imagesx( resource image )

Die Bildparameter sind als imagecreatetruecolor (), imagecreatefromjpeg () gibt die Bild solche Ressourcen.

PHP Get-Funktion Bildhöhe: imagesy ()

imagesy () Funktion wird verwendet, um die Höhe des Bildes, Grammatik und Sprachgebrauch mit imagesx () zu erhalten.

Syntax:

int imagesy( resource image )

Die Bildparameter sind als imagecreatetruecolor (), imagecreatefromjpeg () gibt die Bild solche Ressourcen.

Beispiele

<?php
$img = imagecreatefrompng("w3big-logo.png");
echo "图像宽度:",imagesx( $img ),"<br />";
echo "图像高度:",imagesy( $img );
?>

Browser-Ausgang:

图像宽度:290
图像高度:69

In Verbindung stehende Artikel

Erhalten Sie Bildinformationen Funktion: getimagesize ()

PHP Bildverarbeitung PHP Bildverarbeitung