|| $x<0 || $x>=$self->{"width" }
|| $y<0 || $y>=$self->{"height"}
;
- return \vec($self->{"blob"},int(($self->{"width"}+7)/8)*$y + $x,1);
+ return \vec($self->{"blob"},int(($self->{"width"}+7)/8)*8*$y + $x,1);
}
sub pixget {
my ($self) = @_;
my $bits="";
- for my $y (0..$self->{"height"}) {
+ for my $y (0..$self->{"height"}-1) {
for my $x (0..int(($self->{"width"}+7)&~0x7)-1) {
$bits.=$self->pixget($x,$y);
}