Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Mit php erstelltes Bild ohne Farbe

Empfohlene Antworten

Hi,

ich habe versucht ein Ausschnitt aus einem Bild (enzo.jpg) in ein kleines Bild zu projezieren.

Das klappt auch ganz gut nur irgendwie verliert der Bildausschnitt an Farbe ... :(

http://mitglied.lycos.de/rocketlancher/php/image/

Bitte schauts euch mal an !

Das ist der Code dazu:

$bild = imagecreatefromjpeg("enzo.jpg");

$bildteil = imagecreate(300,300);

imagecopy($bildteil,$bild,0,0,$x,$y,300,300);

imagejpeg($bildteil,"",100);

Gruß Scratch

anstatt:

$bildteil = imagecreate(300,300);

das:

$bildteil = ImageCreateTrueColor(300,300);

Servus,

zum Thema selfphp (OT, aber wichtig):

Dieses Tutorial ist - im Gegensatz zu SelfHTML - nicht sehr ausführlich.

Benutze lieber das Manual von php: http://www.php.net/docs.php

Dort ist sehr viel sehr gut erklärt.

Peter

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.