Skip to content

Instantly share code, notes, and snippets.

@themainframe
Created October 30, 2016 18:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save themainframe/36c18ac037b6e8ce07a360d175f4b80e to your computer and use it in GitHub Desktop.
Save themainframe/36c18ac037b6e8ce07a360d175f4b80e to your computer and use it in GitHub Desktop.
php-ilda sample script
<?php
include 'vendor/autoload.php';
use ILDA\FrameReader;
use ILDA\FrameDrawer;
$frameReader = new FrameReader(__DIR__ . '/samples/ILDA12K.ild');
$frame = $frameReader->nextFrame();
$frameDrawer = new FrameDrawer($frame);
$frameDrawer->render(500, 500);
$frameDrawer->savePNG(__DIR__ . '/ILDA12K.png');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment