142 lines
5.8 KiB
HTML
142 lines
5.8 KiB
HTML
|
|
<!DOCTYPE html>
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<title>displayarray.effects.crop — DisplayArray documentation</title>
|
|
<link rel="stylesheet" href="../_static/alabaster.css" type="text/css" />
|
|
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
|
|
<script type="text/javascript" id="documentation_options" data-url_root="../" src="../_static/documentation_options.js"></script>
|
|
<script type="text/javascript" src="../_static/jquery.js"></script>
|
|
<script type="text/javascript" src="../_static/underscore.js"></script>
|
|
<script type="text/javascript" src="../_static/doctools.js"></script>
|
|
<script type="text/javascript" src="../_static/language_data.js"></script>
|
|
<link rel="index" title="Index" href="../genindex/" />
|
|
<link rel="search" title="Search" href="../search/" />
|
|
<link rel="next" title="displayarray.effects.lens" href="../lens/" />
|
|
<link rel="prev" title="displayarray" href="../displayarray/" />
|
|
|
|
<link rel="stylesheet" href="../_static/custom.css" type="text/css" />
|
|
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=0.9, maximum-scale=0.9" />
|
|
|
|
</head><body>
|
|
|
|
|
|
<div class="document">
|
|
<div class="documentwrapper">
|
|
<div class="bodywrapper">
|
|
|
|
|
|
<div class="body" role="main">
|
|
|
|
<div class="section" id="displayarray-effects-crop">
|
|
<h1>displayarray.effects.crop<a class="headerlink" href="#displayarray-effects-crop" title="Permalink to this headline">¶</a></h1>
|
|
<dl class="class">
|
|
<dt id="displayarray.effects.crop.Crop">
|
|
<em class="property">class </em><code class="sig-name descname">Crop</code><span class="sig-paren">(</span><em class="sig-param">output_size=(64</em>, <em class="sig-param">64</em>, <em class="sig-param">3)</em>, <em class="sig-param">center=None</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/displayarray/effects/crop/#Crop"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#displayarray.effects.crop.Crop" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>A callback class that will return the input array cropped to the output size. N-dimensional.</p>
|
|
<dl class="method">
|
|
<dt id="displayarray.effects.crop.Crop.center">
|
|
<em class="property">property </em><code class="sig-name descname">center</code><a class="headerlink" href="#displayarray.effects.crop.Crop.center" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Get the center.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="displayarray.effects.crop.Crop.enable_mouse_control">
|
|
<code class="sig-name descname">enable_mouse_control</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/displayarray/effects/crop/#Crop.enable_mouse_control"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#displayarray.effects.crop.Crop.enable_mouse_control" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Move the mouse to move where the crop is from on the original image.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="displayarray.effects.crop.Crop.output_size">
|
|
<em class="property">property </em><code class="sig-name descname">output_size</code><a class="headerlink" href="#displayarray.effects.crop.Crop.output_size" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Get the output size.</p>
|
|
</dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="sphinxsidebar" role="navigation" aria-label="main navigation">
|
|
<div class="sphinxsidebarwrapper">
|
|
<h1 class="logo"><a href="../">DisplayArray</a></h1>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h3>Navigation</h3>
|
|
<p class="caption"><span class="caption-text">Python API</span></p>
|
|
<ul class="current">
|
|
<li class="toctree-l1"><a class="reference internal" href="../displayarray/">displayarray</a></li>
|
|
<li class="toctree-l1 current"><a class="current reference internal" href="#">displayarray.effects.crop</a></li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../lens/">displayarray.effects.lens</a></li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../select_channels/">displayarray.effects.select_channels</a></li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../frame/">displayarray.frame</a></li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../window/">displayarray.window</a></li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../input/">displayarray.input</a></li>
|
|
</ul>
|
|
<p class="caption"><span class="caption-text">Bash API</span></p>
|
|
<ul>
|
|
<li class="toctree-l1"><a class="reference internal" href="../displayarray_bash/">displayarray</a></li>
|
|
</ul>
|
|
|
|
<div class="relations">
|
|
<h3>Related Topics</h3>
|
|
<ul>
|
|
<li><a href="../">Documentation overview</a><ul>
|
|
<li>Previous: <a href="../displayarray/" title="previous chapter">displayarray</a></li>
|
|
<li>Next: <a href="../lens/" title="next chapter">displayarray.effects.lens</a></li>
|
|
</ul></li>
|
|
</ul>
|
|
</div>
|
|
<div id="searchbox" style="display: none" role="search">
|
|
<h3 id="searchlabel">Quick search</h3>
|
|
<div class="searchformwrapper">
|
|
<form class="search" action="../search/" method="get">
|
|
<input type="text" name="q" aria-labelledby="searchlabel" />
|
|
<input type="submit" value="Go" />
|
|
</form>
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript">$('#searchbox').show(0);</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
<div class="clearer"></div>
|
|
</div>
|
|
<div class="footer">
|
|
©2019, Simulator Leek.
|
|
|
|
|
|
|
Powered by <a href="http://sphinx-doc.org/">Sphinx 2.2.1</a>
|
|
& <a href="https://github.com/bitprophet/alabaster">Alabaster 0.7.12</a>
|
|
|
|
|
|
|
<a href="../_sources/crop.rst.txt"
|
|
rel="nofollow">Page source</a>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</body>
|
|
</html> |