# 46.9
{
- note("plin coverage");
+ print "# plin coverage\n";
{
$base->box(filled => 1, color => $black);
# plin masked
}
{
- note("plinf coverage");
+ print "# plinf coverage\n";
{
$base->box(filled => 1, color => $black);
# plinf masked
# 71.4%
{
{
- note("gpix");
+ print "# gpix\n";
# gpix
$base->box(filled => 1, color => $black);
ok($base->setpixel(x => 4, y => 10, color => $red),
undef, "check failure to bottom");
}
{
- note("gpixf");
+ print "# gpixf\n";
# gpixf
$base->box(filled => 1, color => $black);
ok($base->setpixel(x => 4, y => 10, color => $redf),
# 74.5
{
{
- note("glin");
+ print "# glin\n";
$base->box(filled => 1, color => $black);
is($base->setscanline(x => 31, y => 3,
pixels => [ ( $red, $green) x 10 ]),
[], "fail read bottom of image");
}
{
- note("glinf");
+ print "# glinf\n";
$base->box(filled => 1, color => $black);
is($base->setscanline(x => 31, y => 3,
pixels => [ ( $redf, $greenf) x 10 ]),
# 81.6%
{
{
- note("gsamp");
+ print "# gsamp\n";
$base->box(filled => 1, color => $black);
is($base->setscanline(x => 31, y => 3,
pixels => [ ( $red, $green) x 10 ]),
[], "fail read bottom of image");
}
{
- note("gsampf");
+ print "# gsampf\n";
$base->box(filled => 1, color => $black);
is($base->setscanline(x => 31, y => 3,
pixels => [ ( $redf, $greenf) x 10 ]),
my ($blacki, $redi, $greeni, $bluei, $greyi) = 0 .. 4;
{ # gpal
- note("gpal");
+ print "# gpal\n";
$base->box(filled => 1, color => $black);
is($base->setscanline(x => 0, y => 5, type => "index",
pixels => [ ( $redi, $greeni, $bluei, $greyi) x 25 ]),
# 89.8%
{ # ppal, unmasked
- note("ppal");
+ print "# ppal\n";
$base->box(filled => 1, color => $black);
is($limited->setscanline(x => 1, y => 1, type => "index",
pixels => [ ( $redi, $greeni, $bluei) x 3 ]),