Lines Matching refs:j

58 			for ($j = 0; $j < count($patch_array[$i]['points']); $j++) {
61 if (($j % 2) == 1) { // Y coordinate (adjusted as input is From top left)
62 $patch_array[$i]['points'][$j] = (($patch_array[$i]['points'][$j] - $y_min) / ($y_max - $y_min)) * $bpcd;
63 $patch_array[$i]['points'][$j] = $bpcd - $patch_array[$i]['points'][$j];
65 $patch_array[$i]['points'][$j] = (($patch_array[$i]['points'][$j] - $x_min) / ($x_max - $x_min)) * $bpcd;
67 if ($patch_array[$i]['points'][$j] < 0) {
68 $patch_array[$i]['points'][$j] = 0;
70 if ($patch_array[$i]['points'][$j] > $bpcd) {
71 $patch_array[$i]['points'][$j] = $bpcd;
74 $this->mpdf->gradients[$n]['stream'] .= chr(floor($patch_array[$i]['points'][$j] / 256));
75 $this->mpdf->gradients[$n]['stream'] .= chr(floor(round($patch_array[$i]['points'][$j]) % 256));
78 for ($j = 0; $j < count($patch_array[$i]['colors']); $j++) {
81 $this->mpdf->gradients[$n]['stream'] .= $patch_array[$i]['colors'][$j][1];
82 $this->mpdf->gradients[$n]['stream'] .= $patch_array[$i]['colors'][$j][2];
83 $this->mpdf->gradients[$n]['stream'] .= $patch_array[$i]['colors'][$j][3];
84 if (isset($patch_array[$i]['colors'][$j][4]) && ord($patch_array[$i]['colors'][$j][4]) < 100) {
88 $this->mpdf->gradients[$n]['stream'] .= chr(ord($patch_array[$i]['colors'][$j][1]) * 2.55);
89 $this->mpdf->gradients[$n]['stream'] .= chr(ord($patch_array[$i]['colors'][$j][2]) * 2.55);
90 $this->mpdf->gradients[$n]['stream'] .= chr(ord($patch_array[$i]['colors'][$j][3]) * 2.55);
91 $this->mpdf->gradients[$n]['stream'] .= chr(ord($patch_array[$i]['colors'][$j][4]) * 2.55);
92 if (isset($patch_array[$i]['colors'][$j][5]) && ord($patch_array[$i]['colors'][$j][5]) < 100) {
96 $this->mpdf->gradients[$n]['stream'].= $patch_array[$i]['colors'][$j][1];
97 if ($patch_array[$i]['colors'][$j][2] == 1) {
112 for ($j = 0; $j < count($patch_array[$i]['points']); $j++) {
114 $this->mpdf->gradients[$n]['stream_trans'] .= chr(floor($patch_array[$i]['points'][$j] / 256));
115 $this->mpdf->gradients[$n]['stream_trans'] .= chr(floor(round($patch_array[$i]['points'][$j]) % 256));
118 for ($j = 0; $j < count($patch_array[$i]['colors']); $j++) {
121 $this->mpdf->gradients[$n]['stream_trans'] .= chr((int) (ord($patch_array[$i]['colors'][$j][4]) * 2.55));
123 $this->mpdf->gradients[$n]['stream_trans'] .= chr((int) (ord($patch_array[$i]['colors'][$j][5]) * 2.55));
125 $this->mpdf->gradients[$n]['stream_trans'] .= chr((int) (ord($patch_array[$i]['colors'][$j][3]) * 2.55));
557 for ($j = ($i + 1); $j < count($stops); $j++) {
558 if (isset($stops[$j]['offset'])) {
562 $int = ($stops[$j]['offset'] - $stops[$i - 1]['offset']) / ($j - $i + 1);
563 for ($f = 0; $f < ($j - $i - 1); $f++) {