Code Monkey home page Code Monkey logo

pixelmagic's Introduction

<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>MCI - Multi Coloured Image</title>
</head>
<body>
<h1>Multi Coloured Image</h1>
<h2>Prerequisites</h2>
<ul>
    <li>Check you have java installed: issue <font face="fixed,mono,courier">java -version</font> from the command line, it should be version 1.7 or above.</li>
    <li>Check you have ant installed: issue <font face="fixed,mono,courier">ant -version</font> from the command line, it should be version 1.6 or above.</li>
</ul>
<h2>How to</h2>
<h3>Install</h3>
<p>expand the <font face="fixed,mono,courier">mci_bundle.zip</font> file into a directory of your choice, it will be run from that directory.</p>
<h3>Run</h3>
<p>
<b>With ant:</b>
To produce a multi coloured image named <font face="fixed,mono,courier"><i>poc.png</i></font> in the <font face="fixed,mono,courier">images/</font> directory, issue the following command;
<br>
<font face="fixed,mono,courier">ant poc</font>
<br>
To verify that an image contains only unqiue pixels, issue the following command;
    <br>
    <nr>
        <font face="fixed,mono,courier">ant verify -Dimage=<i>name</i></font>
    </nr>
    <br>
    Where <font face="fixed,mono,courier"><i>image</i></font> is the name of the image to be verified, it shall default to poc.png if not specified.

</p>
<p>
    <b>Without ant:</b>
    <ul>
    <li>Create default image: <font face="fixed,mono,courier">java -jar dist/mci.jar</font></li>
    <li>Create named image in specific directory: <font face="fixed,mono,courier">java  -Dimage.dir=/volumes/x07/mydir -jar dist/mci.jar freddy.png</font> - the order of the arguments is important!</li>
    <li>Verify default image: <font  face="fixed,mono,courier">java -classpath dist/mci.jar au.com.polly.mci.ImageVerifier poc.png</font></li>
    </ul>
    <br>
</p>
The result should look something like;<br>
<hl>
<img src="images/poc.png" width="800" height="400"/>
</hl>
<h3>Run unit tests</h3>
<p>
Requires ant to be installed (I actually run the tests successfully within Intelli-J too).
From the top level directory invoke the following command;
<br>
 <font face="fixed,mono,courier">ant test</font>
<br>
</p>
<h2>Manifest</h2>
<ul>
    <li><font face="fixed,mono,courier">readme.html</font> - this file</li>
    <li><font face="fixed,mono,courier">mci.jar</font> - classes containing the application</li>
    <li><font face="fixed,mono,courier">mci_test.jar</font> - unit test classes and image files</li>
    <li><font face="fixed,mono,courier">images/</font> - test images</li>
    <li><font face="fixed,mono,courier">src/</font> - source code for the application</li>
    <li><font face="fixed,mono,courier">tests/</font> - source code for the unit tests</li>
    <li><font face="fixed,mono,courier">build.xml</font> - ant build file</li>
</ul>
</body>
</html>

pixelmagic's People

Contributors

davrosyoung avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.