mirror of
https://github.com/zxing/zxing.git
synced 2025-03-05 20:48:51 -08:00
Now public
git-svn-id: https://zxing.googlecode.com/svn/trunk@122 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
parent
ac3e9d3335
commit
74ff130112
|
@ -28,7 +28,7 @@ import javax.microedition.lcdui.Image;
|
||||||
*
|
*
|
||||||
* @author Sean Owen (srowen@google.com), Daniel Switkin (dswitkin@google.com)
|
* @author Sean Owen (srowen@google.com), Daniel Switkin (dswitkin@google.com)
|
||||||
*/
|
*/
|
||||||
final class LCDUIImageMonochromeBitmapSource implements MonochromeBitmapSource {
|
public final class LCDUIImageMonochromeBitmapSource implements MonochromeBitmapSource {
|
||||||
|
|
||||||
private final int[] rgbPixels;
|
private final int[] rgbPixels;
|
||||||
private final int width;
|
private final int width;
|
||||||
|
@ -41,7 +41,7 @@ final class LCDUIImageMonochromeBitmapSource implements MonochromeBitmapSource {
|
||||||
private static final int LUMINANCE_SHIFT = 8 - LUMINANCE_BITS;
|
private static final int LUMINANCE_SHIFT = 8 - LUMINANCE_BITS;
|
||||||
private static final int LUMINANCE_BUCKETS = 1 << LUMINANCE_BITS;
|
private static final int LUMINANCE_BUCKETS = 1 << LUMINANCE_BITS;
|
||||||
|
|
||||||
LCDUIImageMonochromeBitmapSource(final Image image) {
|
public LCDUIImageMonochromeBitmapSource(Image image) {
|
||||||
width = image.getWidth();
|
width = image.getWidth();
|
||||||
height = image.getHeight();
|
height = image.getHeight();
|
||||||
rgbPixels = new int[width * height];
|
rgbPixels = new int[width * height];
|
||||||
|
|
Loading…
Reference in a new issue