docs/classes/Filestack_Filelink/ascii.html
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html SYSTEM "about:legacy-compat">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<title>phpDox - Filestack\Filelink::ascii</title>
<link rel="stylesheet" type="text/css" href="../../css/style.css" media="screen"/>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
</head>
<body>
<nav class="topnav">
<ul>
<li>
<div class="logo"><span>/**</span>phpDox</div>
</li>
<li class="separator">
<a href="../../index.html">Overview</a>
</li>
<li class="separator">
<a href="../../namespaces.html">Namespaces</a>
</li>
<li>
<a href="../../classes.html">Classes</a>
</li>
<li>
<a href="../../traits.html">Traits</a>
</li>
<li class="separator">
<a href="../../source/index.html">Source</a>
</li>
</ul>
</nav>
<div id="mainstage">
<div class="box">
<ul class="breadcrumb">
<li>
<a href="../../index.html">Overview</a>
</li>
<li class="separator">
<a href="../../classes.html">Classes</a>
</li>
<li class="separator">
<a href="../../classes.html#Filestack">Filestack</a>
</li>
<li class="separator">
<a title="Filestack\Filelink" href="../../classes/Filestack_Filelink.html">Filelink</a>
</li>
<li class="separator">ascii</li>
</ul>
</div>
<nav class="box">
<ul>
<li>
<a href="#introduction">Introduction</a>
</li>
<li>
<a href="#synopsis">Synopsis</a>
</li>
<li>
<a href="#parameter">Parameter</a>
</li>
<li>
<a href="#return">Return</a>
</li>
<li>
<a href="#throws">Throws</a>
</li>
<li>
<a href="#tests">Tests</a>
</li>
<li>
<a href="../../source/Filelink.php.html#line82">Source</a>
</li>
</ul>
</nav>
<section>
<h1><small>Filestack\Filelink::</small>ascii</h1>
<h4>Set this Filelink's transform_url to include ascii task</h4>
<p/>
<ul/>
<h2 id="signature">Signature</h2>
<div class="styled synopsis">
<code>public function ascii([string
$background = 'white',
[boolean
$colored = false,
[string
$foreground = 'red',
[boolean
$reverse = false,
[integer
$size = 100]]]]] )
</code>
</div>
<h2 id="parameterlist">Parameters</h2>
<dl class="styled">
<dt><code>$background</code>
—
string</dt>
<dd>background color of the HTML file. This<br/>can be the word for a color hex value<br/> e.g. ('black' or '000000')</dd>
<dt><code>$colored</code>
—
boolean</dt>
<dd>Reproduces the colors in the original image<br/>if set to true.</dd>
<dt><code>$foreground</code>
—
string</dt>
<dd>Specifies the font color of ASCII images.<br/>Only works in non-colored mode.</dd>
<dt><code>$reverse</code>
—
boolean</dt>
<dd>Reverses the character set used to generate<br/>the ASCII output. Requires colored:true.</dd>
<dt><code>$size</code>
—
integer</dt>
<dd/>
</dl>
<h2 id="return">Returns</h2>
<dl class="styled">
<dt>Filestack/Filelink</dt>
<dd><br/>
</dd>
</dl>
<h2 id="throws">Errors/Exceptions</h2>
<dl class="styled">
<dt>
<code>
<a title="Filestack\FilestackException" href="../../classes/Filestack_FilestackException.html">FilestackException</a>
</code>
</dt>
<dd>if API call fails, e.g 404 file not found</dd>
</dl>
<h2 id="tests">Test Coverage</h2>
<div class="styled">
<h3>Information</h3>
<ul class="styled">
<li>Coverage: / Lines (%)</li>
<li>Tests: 0</li>
<li>Passed: 0 (0%)</li>
</ul>
</div>
</section>
</div>
<footer>
<span>Generated using phpDox 0.12.0 - Copyright (C) 2010 - 2020 by Arne Blankerts and Contributors</span>
</footer>
</body>
</html>