Barcode-DataMatrix-PNG
view release on metacpan or search on metacpan
lib/Barcode/DataMatrix/PNG.pm view on Meta::CPAN
if ($tn == 1) {
$img->filledRectangle($x,$y,($x + ($self->resolution - 1)),($y + ($self->resolution - 1)),$black);
# Fill our 1s with black at a size of 'resolution' pixels.
}
$x = ($x + $self->resolution);
}
$x = 0;
$y = ($y + $self->resolution);
}
if ($self->target =~ /pass/i) {
# Return the png image.
return ($img->png);
} else {
# Dump our image to STDOUT.
print $img->png;
return 1;
}
}
sub echo_barcode {
# Dump the text of the matrix.
my $self = shift;
return $self->barcode;
# Useful for Human-readable string.
}
( run in 0.363 second using v1.01-cache-2.11-cpan-df04353d9ac )