Das hat bei mir ganz gut geklappt, ist aber halt PHP.
Ich dachte ich poste es trotzdem mal.
Vielleicht kann das ja jemand irgendwie umsetzen.
|
Quellcode
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
<?php
$Bild = imagecreatefromgif("bild.gif");
$Bildbreite = imagesx($Bild);
$Bildhoehe = imagesy($Bild);
echo"<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n";
for($i=0; $i<$Bildhoehe; $i++)
{
echo" <tr>\n";
for($j=0; $j<$Bildbreite; $j++)
{
$RGB = imagecolorat($Bild, $j, $i);
$RGBWert = imagecolorsforindex($Bild, $RGB);
echo" <td style=\"background-color:rgb(",
$RGBWert[red],
",",
$RGBWert[green],
",",
$RGBWert[blue],
");height:1px;width:1px;\">";
echo"</td>\n";
}
echo" </tr>\n";
}
echo"</table>";
?>
|