zxing/docs/javadoc/com/google/zxing/MonochromeBitmapSource.html
srowen 54d65e315d Try adding current javadoc to SVN
git-svn-id: https://zxing.googlecode.com/svn/trunk@992 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-06-26 17:47:15 +00:00

529 lines
24 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_13) on Fri Jun 26 13:12:28 EDT 2009 -->
<TITLE>
MonochromeBitmapSource
</TITLE>
<META NAME="date" CONTENT="2009-06-26">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
<SCRIPT type="text/javascript">
function windowTitle()
{
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="MonochromeBitmapSource";
}
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>
</HEAD>
<BODY BGCOLOR="white" onload="windowTitle();">
<HR>
<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../com/google/zxing/EncodeHintType.html" title="class in com.google.zxing"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../com/google/zxing/MultiFormatReader.html" title="class in com.google.zxing"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../index.html?com/google/zxing/MonochromeBitmapSource.html" target="_top"><B>FRAMES</B></A> &nbsp;
&nbsp;<A HREF="MonochromeBitmapSource.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
&nbsp;<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->
<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
com.google.zxing</FONT>
<BR>
Interface MonochromeBitmapSource</H2>
<DL>
<DT><B>All Known Implementing Classes:</B> <DD><A HREF="../../../com/google/zxing/client/bug/AWTImageMonochromeBitmapSource.html" title="class in com.google.zxing.client.bug">AWTImageMonochromeBitmapSource</A>, <A HREF="../../../com/google/zxing/common/BaseMonochromeBitmapSource.html" title="class in com.google.zxing.common">BaseMonochromeBitmapSource</A>, <A HREF="../../../com/google/zxing/client/j2se/BufferedImageMonochromeBitmapSource.html" title="class in com.google.zxing.client.j2se">BufferedImageMonochromeBitmapSource</A>, <A HREF="../../../com/google/zxing/common/CroppedMonochromeBitmapSource.html" title="class in com.google.zxing.common">CroppedMonochromeBitmapSource</A>, <A HREF="../../../com/google/zxing/client/j2me/LCDUIImageMonochromeBitmapSource.html" title="class in com.google.zxing.client.j2me">LCDUIImageMonochromeBitmapSource</A>, <A HREF="../../../com/google/zxing/client/android/YUVMonochromeBitmapSource.html" title="class in com.google.zxing.client.android">YUVMonochromeBitmapSource</A></DD>
</DL>
<HR>
<DL>
<DT><PRE>public interface <B>MonochromeBitmapSource</B></DL>
</PRE>
<P>
<p>Encapsulates a generic black-and-white bitmap -- a collection of pixels in two dimensions.
This unifies many possible representations, like AWT's <code>BufferedImage</code>.</p>
<P>
<P>
<DL>
<DT><B>Author:</B></DT>
<DD>Sean Owen, dswitkin@google.com (Daniel Switkin)</DD>
</DL>
<HR>
<P>
<!-- ========== METHOD SUMMARY =========== -->
<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Method Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/google/zxing/MonochromeBitmapSource.html#estimateBlackPoint(com.google.zxing.BlackPointEstimationMethod, int)">estimateBlackPoint</A></B>(<A HREF="../../../com/google/zxing/BlackPointEstimationMethod.html" title="class in com.google.zxing">BlackPointEstimationMethod</A>&nbsp;method,
int&nbsp;argument)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Estimates black point according to the given method, which is optionally parameterized by
a single int argument.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../com/google/zxing/common/BitArray.html" title="class in com.google.zxing.common">BitArray</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/google/zxing/MonochromeBitmapSource.html#getBlackColumn(int, com.google.zxing.common.BitArray, int, int)">getBlackColumn</A></B>(int&nbsp;x,
<A HREF="../../../com/google/zxing/common/BitArray.html" title="class in com.google.zxing.common">BitArray</A>&nbsp;column,
int&nbsp;startY,
int&nbsp;getHeight)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Entirely analogous to <A HREF="../../../com/google/zxing/MonochromeBitmapSource.html#getBlackRow(int, com.google.zxing.common.BitArray, int, int)"><CODE>getBlackRow(int, BitArray, int, int)</CODE></A> but gets a column.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../com/google/zxing/common/BitArray.html" title="class in com.google.zxing.common">BitArray</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/google/zxing/MonochromeBitmapSource.html#getBlackDiagonal(int, int, int, int, com.google.zxing.common.BitArray, int)">getBlackDiagonal</A></B>(int&nbsp;x,
int&nbsp;y,
int&nbsp;dx,
int&nbsp;dy,
<A HREF="../../../com/google/zxing/common/BitArray.html" title="class in com.google.zxing.common">BitArray</A>&nbsp;diagonal,
int&nbsp;size)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../com/google/zxing/common/BitArray.html" title="class in com.google.zxing.common">BitArray</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/google/zxing/MonochromeBitmapSource.html#getBlackRow(int, com.google.zxing.common.BitArray, int, int)">getBlackRow</A></B>(int&nbsp;y,
<A HREF="../../../com/google/zxing/common/BitArray.html" title="class in com.google.zxing.common">BitArray</A>&nbsp;row,
int&nbsp;startX,
int&nbsp;getWidth)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns an entire row of black/white pixels as an array of bits, where "true" means "black".</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/google/zxing/MonochromeBitmapSource.html#getHeight()">getHeight</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../com/google/zxing/BlackPointEstimationMethod.html" title="class in com.google.zxing">BlackPointEstimationMethod</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/google/zxing/MonochromeBitmapSource.html#getLastEstimationMethod()">getLastEstimationMethod</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/google/zxing/MonochromeBitmapSource.html#getLuminance(int, int)">getLuminance</A></B>(int&nbsp;x,
int&nbsp;y)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Retrieves the luminance at the pixel x,y in the bitmap.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/google/zxing/MonochromeBitmapSource.html#getLuminanceColumn(int, int[])">getLuminanceColumn</A></B>(int&nbsp;x,
int[]&nbsp;column)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The same as getLuminanceRow(), but for columns.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/google/zxing/MonochromeBitmapSource.html#getLuminanceRow(int, int[])">getLuminanceRow</A></B>(int&nbsp;y,
int[]&nbsp;row)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This is the main mechanism for retrieving luminance data.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/google/zxing/MonochromeBitmapSource.html#getWidth()">getWidth</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/google/zxing/MonochromeBitmapSource.html#isBlack(int, int)">isBlack</A></B>(int&nbsp;x,
int&nbsp;y)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/google/zxing/MonochromeBitmapSource.html#isRotateSupported()">isRotateSupported</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../com/google/zxing/MonochromeBitmapSource.html" title="interface in com.google.zxing">MonochromeBitmapSource</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/google/zxing/MonochromeBitmapSource.html#rotateCounterClockwise()">rotateCounterClockwise</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Optional operation which returns an implementation based on the same underlying
image, but which behaves as if the underlying image had been rotated 90 degrees
counterclockwise.</TD>
</TR>
</TABLE>
&nbsp;
<P>
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="isBlack(int, int)"><!-- --></A><H3>
isBlack</H3>
<PRE>
boolean <B>isBlack</B>(int&nbsp;x,
int&nbsp;y)</PRE>
<DL>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>x</CODE> - horizontal offset, from left, of the pixel<DD><CODE>y</CODE> - vertical offset, from top, of the pixel
<DT><B>Returns:</B><DD>true iff the pixel at (x,y) is black</DL>
</DD>
</DL>
<HR>
<A NAME="getBlackRow(int, com.google.zxing.common.BitArray, int, int)"><!-- --></A><H3>
getBlackRow</H3>
<PRE>
<A HREF="../../../com/google/zxing/common/BitArray.html" title="class in com.google.zxing.common">BitArray</A> <B>getBlackRow</B>(int&nbsp;y,
<A HREF="../../../com/google/zxing/common/BitArray.html" title="class in com.google.zxing.common">BitArray</A>&nbsp;row,
int&nbsp;startX,
int&nbsp;getWidth)</PRE>
<DL>
<DD><p>Returns an entire row of black/white pixels as an array of bits, where "true" means "black".
This is a sort of "bulk get" operation intended to enable efficient access in
certain situations.</p>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>y</CODE> - vertical offset, from top, of the row of pixels<DD><CODE>row</CODE> - if not null, <A HREF="../../../com/google/zxing/common/BitArray.html" title="class in com.google.zxing.common"><CODE>BitArray</CODE></A> to write pixels into. If null, a new <A HREF="../../../com/google/zxing/common/BitArray.html" title="class in com.google.zxing.common"><CODE>BitArray</CODE></A>
is allocated and returned.<DD><CODE>startX</CODE> - horizontal offset, from left, from which to start getting pixels<DD><CODE>getWidth</CODE> - number of pixels to get from the row
<DT><B>Returns:</B><DD><A HREF="../../../com/google/zxing/common/BitArray.html" title="class in com.google.zxing.common"><CODE>BitArray</CODE></A> representing the (subset of the) row of pixels. If row parameter
was not null, it is returned.</DL>
</DD>
</DL>
<HR>
<A NAME="getBlackColumn(int, com.google.zxing.common.BitArray, int, int)"><!-- --></A><H3>
getBlackColumn</H3>
<PRE>
<A HREF="../../../com/google/zxing/common/BitArray.html" title="class in com.google.zxing.common">BitArray</A> <B>getBlackColumn</B>(int&nbsp;x,
<A HREF="../../../com/google/zxing/common/BitArray.html" title="class in com.google.zxing.common">BitArray</A>&nbsp;column,
int&nbsp;startY,
int&nbsp;getHeight)</PRE>
<DL>
<DD>Entirely analogous to <A HREF="../../../com/google/zxing/MonochromeBitmapSource.html#getBlackRow(int, com.google.zxing.common.BitArray, int, int)"><CODE>getBlackRow(int, BitArray, int, int)</CODE></A> but gets a column.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getBlackDiagonal(int, int, int, int, com.google.zxing.common.BitArray, int)"><!-- --></A><H3>
getBlackDiagonal</H3>
<PRE>
<A HREF="../../../com/google/zxing/common/BitArray.html" title="class in com.google.zxing.common">BitArray</A> <B>getBlackDiagonal</B>(int&nbsp;x,
int&nbsp;y,
int&nbsp;dx,
int&nbsp;dy,
<A HREF="../../../com/google/zxing/common/BitArray.html" title="class in com.google.zxing.common">BitArray</A>&nbsp;diagonal,
int&nbsp;size)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getHeight()"><!-- --></A><H3>
getHeight</H3>
<PRE>
int <B>getHeight</B>()</PRE>
<DL>
<DD><DL>
<DT><B>Returns:</B><DD>height of underlying image</DL>
</DD>
</DL>
<HR>
<A NAME="getWidth()"><!-- --></A><H3>
getWidth</H3>
<PRE>
int <B>getWidth</B>()</PRE>
<DL>
<DD><DL>
<DT><B>Returns:</B><DD>width of underlying image</DL>
</DD>
</DL>
<HR>
<A NAME="estimateBlackPoint(com.google.zxing.BlackPointEstimationMethod, int)"><!-- --></A><H3>
estimateBlackPoint</H3>
<PRE>
void <B>estimateBlackPoint</B>(<A HREF="../../../com/google/zxing/BlackPointEstimationMethod.html" title="class in com.google.zxing">BlackPointEstimationMethod</A>&nbsp;method,
int&nbsp;argument)
throws <A HREF="../../../com/google/zxing/ReaderException.html" title="class in com.google.zxing">ReaderException</A></PRE>
<DL>
<DD><p>Estimates black point according to the given method, which is optionally parameterized by
a single int argument. For <A HREF="../../../com/google/zxing/BlackPointEstimationMethod.html#ROW_SAMPLING"><CODE>BlackPointEstimationMethod.ROW_SAMPLING</CODE></A>, this
specifies the row to sample.</p>
<p>The estimated value will be used in subsequent computations that rely on an estimated black
point.</p>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>method</CODE> - black point estimation method<DD><CODE>argument</CODE> - method-specific argument
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../com/google/zxing/ReaderException.html" title="class in com.google.zxing">ReaderException</A></CODE></DL>
</DD>
</DL>
<HR>
<A NAME="getLastEstimationMethod()"><!-- --></A><H3>
getLastEstimationMethod</H3>
<PRE>
<A HREF="../../../com/google/zxing/BlackPointEstimationMethod.html" title="class in com.google.zxing">BlackPointEstimationMethod</A> <B>getLastEstimationMethod</B>()</PRE>
<DL>
<DD><DL>
<DT><B>Returns:</B><DD><A HREF="../../../com/google/zxing/BlackPointEstimationMethod.html" title="class in com.google.zxing"><CODE>BlackPointEstimationMethod</CODE></A> representing last sampling method used</DL>
</DD>
</DL>
<HR>
<A NAME="rotateCounterClockwise()"><!-- --></A><H3>
rotateCounterClockwise</H3>
<PRE>
<A HREF="../../../com/google/zxing/MonochromeBitmapSource.html" title="interface in com.google.zxing">MonochromeBitmapSource</A> <B>rotateCounterClockwise</B>()</PRE>
<DL>
<DD><p>Optional operation which returns an implementation based on the same underlying
image, but which behaves as if the underlying image had been rotated 90 degrees
counterclockwise. This is useful in the context of 1D barcodes and the
<A HREF="../../../com/google/zxing/DecodeHintType.html#TRY_HARDER"><CODE>DecodeHintType.TRY_HARDER</CODE></A> decode hint, and is only intended to be
used in non-resource-constrained environments. Hence, implementations
of this class which are only used in resource-constrained mobile environments
don't have a need to implement this.</p>
<P>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE>java.lang.IllegalArgumentException</CODE> - if not supported</DL>
</DD>
</DL>
<HR>
<A NAME="isRotateSupported()"><!-- --></A><H3>
isRotateSupported</H3>
<PRE>
boolean <B>isRotateSupported</B>()</PRE>
<DL>
<DD><DL>
<DT><B>Returns:</B><DD>true iff rotation is supported<DT><B>See Also:</B><DD><A HREF="../../../com/google/zxing/MonochromeBitmapSource.html#rotateCounterClockwise()"><CODE>rotateCounterClockwise()</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="getLuminance(int, int)"><!-- --></A><H3>
getLuminance</H3>
<PRE>
int <B>getLuminance</B>(int&nbsp;x,
int&nbsp;y)</PRE>
<DL>
<DD>Retrieves the luminance at the pixel x,y in the bitmap. This method is only used for estimating
the black point and implementing getBlackRow() - it is not meant for decoding, hence it is not
part of MonochromeBitmapSource itself, and is protected.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>x</CODE> - The x coordinate in the image.<DD><CODE>y</CODE> - The y coordinate in the image.
<DT><B>Returns:</B><DD>The luminance value between 0 and 255.</DL>
</DD>
</DL>
<HR>
<A NAME="getLuminanceRow(int, int[])"><!-- --></A><H3>
getLuminanceRow</H3>
<PRE>
int[] <B>getLuminanceRow</B>(int&nbsp;y,
int[]&nbsp;row)</PRE>
<DL>
<DD>This is the main mechanism for retrieving luminance data. It is dramatically more efficient
than repeatedly calling getLuminance(). As above, this is not meant for decoders.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>y</CODE> - The row to fetch<DD><CODE>row</CODE> - The array to write luminance values into. It is <b>strongly</b> suggested that you
allocate this yourself, making sure row.length >= getWidth(), and reuse the same
array on subsequent calls for performance. If you pass null, you will be flogged,
but then I will take pity on you and allocate a sufficient array internally.
<DT><B>Returns:</B><DD>The array containing the luminance data. This is the same as row if it was usable.</DL>
</DD>
</DL>
<HR>
<A NAME="getLuminanceColumn(int, int[])"><!-- --></A><H3>
getLuminanceColumn</H3>
<PRE>
int[] <B>getLuminanceColumn</B>(int&nbsp;x,
int[]&nbsp;column)</PRE>
<DL>
<DD>The same as getLuminanceRow(), but for columns.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>x</CODE> - The column to fetch<DD><CODE>column</CODE> - The array to write luminance values into. See above.
<DT><B>Returns:</B><DD>The array containing the luminance data.</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
<script type="text/javascript"> var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); </script> <script type="text/javascript"> var pageTracker = _gat._getTracker("UA-788492-5"); pageTracker._initData(); pageTracker._trackPageview(); </script></EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../com/google/zxing/EncodeHintType.html" title="class in com.google.zxing"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../com/google/zxing/MultiFormatReader.html" title="class in com.google.zxing"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../index.html?com/google/zxing/MonochromeBitmapSource.html" target="_top"><B>FRAMES</B></A> &nbsp;
&nbsp;<A HREF="MonochromeBitmapSource.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
&nbsp;<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
</BODY>
</HTML>