blib/lib/App/Asciio/setup/GTK/import_export/png.pl untested

filter: Statementstmt 0.0% 0 / 1 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 1 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 3 CC 1 SCAR 6.9
CC
1
Cov
0%
export_png
2.0
CRAP 2.0
1  
2 register_import_export_handlers
3 (
4 png =>
5 {
6 IMPORT => undef ,
7 EXPORT => \&export_png,
8 },
9 ) ;
10  
11 sub export_png
12 {
13 # my ($self, $elements_to_save, $file) = @_ ;
14  
15 # if($self->{CREATE_BACKUP} && -e $file)
16 # {
17 # use File::Copy;
18 # copy($file,"$file.bak") or die "export_pod: Copy failed while making backup copy: $!";
19 # }
20  
21 # my $alloc = $self->{widget}->allocation;
22 # my $pixbuf = Gtk3::Gdk::Pixbuf->get_from_drawable
23 # (
24 # $self->{PIXMAP},
25 # $self->{widget}->window->get_colormap,
26 # 0, 0,
27 # 0, 0,
28 # $alloc->width, $alloc->height
29 # );
30
31 # return $pixbuf->save($file, "png" );
32 }
33