Subject: | sub load_image |
Date: | Sat, 8 Aug 2015 18:08:43 +0200 |
To: | "bug-Graphics-Framebuffer [...] rt.cpan.org" <bug-graphics-framebuffer [...] rt.cpan.org> |
From: | Patricia Bauer <patricia-88 [...] hotmail.de> |
Hello,
i have a little problem with the load_image function when i want to use.
Can't call method "read" on an undefined value at /usr/local/share/perl/5.14.2/Graphics/Framebuffer.pm line 3609.
#!/usr/bin/perl
use strict;
use warnings;
use Graphics::Framebuffer;
my $fb = Graphics::Framebuffer->new('SPLASH' => 0);
$fb->load_image(
{
'x' => 20,
'y' => 20,
'width' => 1920, # optional
'height' => 1080, # optional
'file' => '/root/Mystery.jpg' # Needs full path
}
);
Location of the file must be right .
pwd Mystery.jpg shows :
/root
what I`m doing wrong ??