Lines Matching refs:scale
96 $area = floor(($this->scale->size * $bcd['num_cols']) * 0.2);
192 $scale = [];
196 $scale['frame'] = $this->size - ($this->_borderPx * 2);
197 $scale['margin'] = round($this->size * ($this->margin / 100));
198 $scale['area'] = $scale['frame'] - (($scale['margin'] * 2));
199 $scale['size'] = floor($scale['area'] / $bcd['num_cols']);
200 $scale['posX'] = $scale['margin'] + floor(($scale['area'] - ($bcd['num_cols'] * $scale['size'])) / 2);
201 $scale['posY'] = $scale['posX'];
203 $scale['frame'] = $this->size;
204 $scale['margin'] = 0;
205 $scale['area'] = $this->size;
206 $scale['size'] = floor($scale['area'] / $bcd['num_cols']);
207 $scale['posX'] = floor(($scale['frame'] - ($bcd['num_cols'] * $scale['size'])) / 2);
208 $scale['posY'] = $scale['posX'];
211 if ($this->size < $scale['frame'])
214 return (object) $scale;
221 $scale = $this->scale;
229 $qrcodeData .= '<div style="font-size:0;position:absolute; width:'.($scale->size * $bcd['num_cols']).'px;height:'.($scale->size * $bcd['num_rows']).'px; top:'.$scale->posY.'px; left:'.$scale->posX.'px" z-index:1;>'."\n";
231 $w = $scale->size;
232 $h = $scale->size;
267 $scale = $this->scale;
269 $w = $bcd['num_cols'] * $scale->size;
270 $h = $bcd['num_rows'] * $scale->size;
289 imagefilledrectangle($png, $x, $y, ($x + $scale->size - 1), ($y + $scale->size - 1), $fgcol);
291 $x += $scale->size;
293 $y += $scale->size;
301 imagecopyresampled($frame, $png, $scale->posX, $scale->posY, 0, 0, imagesx($png), imagesy($png), imagesx($png), imagesy($png));
343 $scale = $this->scale;
345 $w = $bcd['num_cols'] * $scale->size;
346 $h = $bcd['num_rows'] * $scale->size;
362 $y = $scale->posY;
365 $x = $scale->posX;
370 $qrcodeData .= "\t\t".'<rect x="'.$x.'" y="'.$y.'" width="'.$scale->size.'" height="'.$scale->size.'" />'."\n";
372 $x += $scale->size;
374 $y += $scale->size;