Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature currently requires accessing the site using the built-in Safari browser.
<?php
$im = imagecreatefromjpeg('bild.jpg');
$width = imagesx($im);
$height = imagesy($im);
$border = 8;
imagealphablending($im, true);
$light = imagecolorallocatealpha($im, 255, 255, 255, 110);
$dark = imagecolorallocatealpha($im, 0, 0, 0, 90);
// oben
for ($y = 0; $y < $border; ++$y)
{
for ($x = $y + 1; $x < $width - $y; ++$x)
{
imagesetpixel($im, $x, $y, $light);
}
}
// links
for ($x = 0; $x < $border; ++$x)
{
for ($y = $x; $y < $height - $x; ++$y)
{
imagesetpixel($im, $x, $y, $light);
}
}
// unten
for ($y = 0; $y < $border; ++$y)
{
for ($x = $y; $x < $width - $y - 1; ++$x)
{
imagesetpixel($im, $x, $height - $y - 1, $dark);
}
}
// rechts
for ($x = 0; $x < $border; ++$x)
{
for ($y = $x; $y < $height - $x; ++$y)
{
imagesetpixel($im, $width - $x - 1, $y, $dark);
}
}
header('Content-Type: image/jpeg');
imagejpeg($im);
?>
$light = imagecolorallocatealpha($dst_img, 255, 255, 255, 80);
$dark = imagecolorallocatealpha($dst_img, 0, 0, 0, 30)