@@ 218-243 (lines=26) @@ | ||
215 | ||
216 | // write the record |
|
217 | switch ($this->object->getParent()->getBlipType()) { |
|
218 | case \PhpOffice\PhpSpreadsheet\Shared\Escher\DggContainer\BstoreContainer\BSE::BLIPTYPE_JPEG: |
|
219 | // initialize |
|
220 | $innerData = ''; |
|
221 | ||
222 | $rgbUid1 = pack('VVVV', 0, 0, 0, 0); // todo |
|
223 | $innerData .= $rgbUid1; |
|
224 | ||
225 | $tag = 0xFF; // todo |
|
226 | $innerData .= pack('C', $tag); |
|
227 | ||
228 | $innerData .= $this->object->getData(); |
|
229 | ||
230 | $recVer = 0x0; |
|
231 | $recInstance = 0x46A; |
|
232 | $recType = 0xF01D; |
|
233 | $length = strlen($innerData); |
|
234 | ||
235 | $recVerInstance = $recVer; |
|
236 | $recVerInstance |= $recInstance << 4; |
|
237 | ||
238 | $header = pack('vvV', $recVerInstance, $recType, $length); |
|
239 | ||
240 | $this->data = $header; |
|
241 | ||
242 | $this->data .= $innerData; |
|
243 | break; |
|
244 | ||
245 | case \PhpOffice\PhpSpreadsheet\Shared\Escher\DggContainer\BstoreContainer\BSE::BLIPTYPE_PNG: |
|
246 | // initialize |
|
@@ 245-270 (lines=26) @@ | ||
242 | $this->data .= $innerData; |
|
243 | break; |
|
244 | ||
245 | case \PhpOffice\PhpSpreadsheet\Shared\Escher\DggContainer\BstoreContainer\BSE::BLIPTYPE_PNG: |
|
246 | // initialize |
|
247 | $innerData = ''; |
|
248 | ||
249 | $rgbUid1 = pack('VVVV', 0, 0, 0, 0); // todo |
|
250 | $innerData .= $rgbUid1; |
|
251 | ||
252 | $tag = 0xFF; // todo |
|
253 | $innerData .= pack('C', $tag); |
|
254 | ||
255 | $innerData .= $this->object->getData(); |
|
256 | ||
257 | $recVer = 0x0; |
|
258 | $recInstance = 0x6E0; |
|
259 | $recType = 0xF01E; |
|
260 | $length = strlen($innerData); |
|
261 | ||
262 | $recVerInstance = $recVer; |
|
263 | $recVerInstance |= $recInstance << 4; |
|
264 | ||
265 | $header = pack('vvV', $recVerInstance, $recType, $length); |
|
266 | ||
267 | $this->data = $header; |
|
268 | ||
269 | $this->data .= $innerData; |
|
270 | break; |
|
271 | } |
|
272 | break; |
|
273 | case '\\PhpOffice\\PhpSpreadsheet\\Shared\\Escher\\DgContainer': |