Leser: 2
|< 1 2 >| | 12 Einträge, 2 Seiten |
1
2
3
4
my $filename = 'bild.gif';
my $image = $self->Photo(-file => $filename);
print $image->cget(-height), ",", $image->cget(-width);
$canvas->createImage($x, $y, -image => $image);
1
2
3
4
5
6
7
8
9
10
sub gifSize{
if (-e $_[0]){
if (open (HANDLE, "<$_[0]")){
my $retStr = "";
binmode HANDLE;
read(HANDLE, $retStr, 10);
close (HANDLE);
return (unpack ("v", substr($retStr,6,2)),unpack ("v", substr($retStr,8,2)));
} } }
|< 1 2 >| | 12 Einträge, 2 Seiten |