<li><ahref="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">java.lang.Object</a></li>
<li><ahref="../../../com/google/zxing/LuminanceSource.html"title="class in com.google.zxing">com.google.zxing.LuminanceSource</a></li>
<li>
<ulclass="inheritance">
<li>com.google.zxing.InvertedLuminanceSource</li>
</ul>
</li>
</ul>
</li>
</ul>
<divclass="description">
<ulclass="blockList">
<liclass="blockList">
<hr>
<br>
<pre>public final class <spanclass="typeNameLabel">InvertedLuminanceSource</span>
extends <ahref="../../../com/google/zxing/LuminanceSource.html"title="class in com.google.zxing">LuminanceSource</a></pre>
<divclass="block">A wrapper implementation of <ahref="../../../com/google/zxing/LuminanceSource.html"title="class in com.google.zxing"><code>LuminanceSource</code></a> which inverts the luminances it returns -- black becomes
white and vice versa, and each value becomes (255-value).</div>
<thclass="colOne"scope="col">Constructor and Description</th>
</tr>
<trclass="altColor">
<tdclass="colOne"><code><spanclass="memberNameLink"><ahref="../../../com/google/zxing/InvertedLuminanceSource.html#InvertedLuminanceSource-com.google.zxing.LuminanceSource-">InvertedLuminanceSource</a></span>(<ahref="../../../com/google/zxing/LuminanceSource.html"title="class in com.google.zxing">LuminanceSource</a> delegate)</code> </td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ulclass="blockList">
<liclass="blockList"><aname="method.summary">
<!---->
</a>
<h3>Method Summary</h3>
<tableclass="memberSummary"border="0"cellpadding="3"cellspacing="0"summary="Method Summary table, listing methods, and an explanation">
<h3>Methods inherited from class com.google.zxing.<ahref="../../../com/google/zxing/LuminanceSource.html"title="class in com.google.zxing">LuminanceSource</a></h3>
<h3>Methods inherited from class java.lang.<ahref="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</a></h3>
<code><ahref="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#clone--"title="class or interface in java.lang">clone</a>, <ahref="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-"title="class or interface in java.lang">equals</a>, <ahref="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#finalize--"title="class or interface in java.lang">finalize</a>, <ahref="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#getClass--"title="class or interface in java.lang">getClass</a>, <ahref="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#hashCode--"title="class or interface in java.lang">hashCode</a>, <ahref="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notify--"title="class or interface in java.lang">notify</a>, <ahref="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notifyAll--"title="class or interface in java.lang">notifyAll</a>, <ahref="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait--"title="class or interface in java.lang">wait</a>, <ahref="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-"title="class or interface in java.lang">wait</a>, <ahref="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-int-"title="class or interface in java.lang">wait</a></code></li>
<pre>public InvertedLuminanceSource(<ahref="../../../com/google/zxing/LuminanceSource.html"title="class in com.google.zxing">LuminanceSource</a> delegate)</pre>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ulclass="blockList">
<liclass="blockList"><aname="method.detail">
<!---->
</a>
<h3>Method Detail</h3>
<aname="getRow-int-byte:A-">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>getRow</h4>
<pre>public byte[] getRow(int y,
byte[] row)</pre>
<divclass="block"><spanclass="descfrmTypeLabel">Description copied from class: <code><ahref="../../../com/google/zxing/LuminanceSource.html#getRow-int-byte:A-">LuminanceSource</a></code></span></div>
<divclass="block">Fetches one row of luminance data from the underlying platform's bitmap. Values range from
0 (black) to 255 (white). Because Java does not have an unsigned byte type, callers will have
to bitwise and with 0xff for each value. It is preferable for implementations of this method
to only fetch this row rather than the whole image, since no 2D Readers may be installed and
<dd><code><ahref="../../../com/google/zxing/LuminanceSource.html#getRow-int-byte:A-">getRow</a></code> in class <code><ahref="../../../com/google/zxing/LuminanceSource.html"title="class in com.google.zxing">LuminanceSource</a></code></dd>
<dd><code>y</code> - The row to fetch, which must be in [0,getHeight())</dd>
<dd><code>row</code> - An optional preallocated array. If null or too small, it will be ignored.
Always use the returned object, and ignore the .length of the array.</dd>
<dt><spanclass="returnLabel">Returns:</span></dt>
<dd>An array containing the luminance data.</dd>
</dl>
</li>
</ul>
<aname="getMatrix--">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>getMatrix</h4>
<pre>public byte[] getMatrix()</pre>
<divclass="block"><spanclass="descfrmTypeLabel">Description copied from class: <code><ahref="../../../com/google/zxing/LuminanceSource.html#getMatrix--">LuminanceSource</a></code></span></div>
<divclass="block">Fetches luminance data for the underlying bitmap. Values should be fetched using:
<code>int luminance = array[y * width + x] & 0xff</code></div>
<dd><code><ahref="../../../com/google/zxing/LuminanceSource.html#getMatrix--">getMatrix</a></code> in class <code><ahref="../../../com/google/zxing/LuminanceSource.html"title="class in com.google.zxing">LuminanceSource</a></code></dd>
<dt><spanclass="returnLabel">Returns:</span></dt>
<dd>A row-major 2D array of luminance values. Do not use result.length as it may be
larger than width * height bytes on some platforms. Do not modify the contents
<dd><code><ahref="../../../com/google/zxing/LuminanceSource.html#isCropSupported--">isCropSupported</a></code> in class <code><ahref="../../../com/google/zxing/LuminanceSource.html"title="class in com.google.zxing">LuminanceSource</a></code></dd>
<dt><spanclass="returnLabel">Returns:</span></dt>
<dd>Whether this subclass supports cropping.</dd>
</dl>
</li>
</ul>
<aname="crop-int-int-int-int-">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>crop</h4>
<pre>public <ahref="../../../com/google/zxing/LuminanceSource.html"title="class in com.google.zxing">LuminanceSource</a> crop(int left,
int top,
int width,
int height)</pre>
<divclass="block"><spanclass="descfrmTypeLabel">Description copied from class: <code><ahref="../../../com/google/zxing/LuminanceSource.html#crop-int-int-int-int-">LuminanceSource</a></code></span></div>
<divclass="block">Returns a new object with cropped image data. Implementations may keep a reference to the
original data rather than a copy. Only callable if isCropSupported() is true.</div>
<dd><code><ahref="../../../com/google/zxing/LuminanceSource.html#crop-int-int-int-int-">crop</a></code> in class <code><ahref="../../../com/google/zxing/LuminanceSource.html"title="class in com.google.zxing">LuminanceSource</a></code></dd>
<dd><code><ahref="../../../com/google/zxing/LuminanceSource.html#isRotateSupported--">isRotateSupported</a></code> in class <code><ahref="../../../com/google/zxing/LuminanceSource.html"title="class in com.google.zxing">LuminanceSource</a></code></dd>
<dt><spanclass="returnLabel">Returns:</span></dt>
<dd>Whether this subclass supports counter-clockwise rotation.</dd>
</dl>
</li>
</ul>
<aname="invert--">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>invert</h4>
<pre>public <ahref="../../../com/google/zxing/LuminanceSource.html"title="class in com.google.zxing">LuminanceSource</a> invert()</pre>
<dd><code><ahref="../../../com/google/zxing/LuminanceSource.html#invert--">invert</a></code> in class <code><ahref="../../../com/google/zxing/LuminanceSource.html"title="class in com.google.zxing">LuminanceSource</a></code></dd>
<dt><spanclass="returnLabel">Returns:</span></dt>
<dd>original delegate <ahref="../../../com/google/zxing/LuminanceSource.html"title="class in com.google.zxing"><code>LuminanceSource</code></a> since invert undoes itself</dd>
</dl>
</li>
</ul>
<aname="rotateCounterClockwise--">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>rotateCounterClockwise</h4>
<pre>public <ahref="../../../com/google/zxing/LuminanceSource.html"title="class in com.google.zxing">LuminanceSource</a> rotateCounterClockwise()</pre>
<divclass="block"><spanclass="descfrmTypeLabel">Description copied from class: <code><ahref="../../../com/google/zxing/LuminanceSource.html#rotateCounterClockwise--">LuminanceSource</a></code></span></div>
<divclass="block">Returns a new object with rotated image data by 90 degrees counterclockwise.
Only callable if <ahref="../../../com/google/zxing/LuminanceSource.html#isRotateSupported--"><code>LuminanceSource.isRotateSupported()</code></a> is true.</div>
<dd><code><ahref="../../../com/google/zxing/LuminanceSource.html#rotateCounterClockwise--">rotateCounterClockwise</a></code> in class <code><ahref="../../../com/google/zxing/LuminanceSource.html"title="class in com.google.zxing">LuminanceSource</a></code></dd>
<dt><spanclass="returnLabel">Returns:</span></dt>
<dd>A rotated version of this object.</dd>
</dl>
</li>
</ul>
<aname="rotateCounterClockwise45--">
<!---->
</a>
<ulclass="blockListLast">
<liclass="blockList">
<h4>rotateCounterClockwise45</h4>
<pre>public <ahref="../../../com/google/zxing/LuminanceSource.html"title="class in com.google.zxing">LuminanceSource</a> rotateCounterClockwise45()</pre>
<divclass="block"><spanclass="descfrmTypeLabel">Description copied from class: <code><ahref="../../../com/google/zxing/LuminanceSource.html#rotateCounterClockwise45--">LuminanceSource</a></code></span></div>
<divclass="block">Returns a new object with rotated image data by 45 degrees counterclockwise.
Only callable if <ahref="../../../com/google/zxing/LuminanceSource.html#isRotateSupported--"><code>LuminanceSource.isRotateSupported()</code></a> is true.</div>
<dd><code><ahref="../../../com/google/zxing/LuminanceSource.html#rotateCounterClockwise45--">rotateCounterClockwise45</a></code> in class <code><ahref="../../../com/google/zxing/LuminanceSource.html"title="class in com.google.zxing">LuminanceSource</a></code></dd>