From: srowen Date: Fri, 22 May 2009 07:55:32 +0000 (+0000) Subject: Make some stuff to public to compile X-Git-Url: http://git.rot13.org/?p=zxing.git;a=commitdiff_plain;h=526efac56768bf87c3fa7ee140872a1c4154214e;hp=2d7e0c04a77045a64400ee2d4ca952649f9806a0 Make some stuff to public to compile git-svn-id: http://zxing.googlecode.com/svn/trunk@948 59b500cc-1b3d-0410-9834-0bbf25fbcc57 --- diff --git a/bug/src/com/google/zxing/client/bug/AWTImageMonochromeBitmapSource.java b/bug/src/com/google/zxing/client/bug/AWTImageMonochromeBitmapSource.java index 735af34f..22bb5bc7 100644 --- a/bug/src/com/google/zxing/client/bug/AWTImageMonochromeBitmapSource.java +++ b/bug/src/com/google/zxing/client/bug/AWTImageMonochromeBitmapSource.java @@ -54,14 +54,14 @@ public final class AWTImageMonochromeBitmapSource extends BaseMonochromeBitmapSo * See com.google.zxing.client.j2me.LCDUIImageMonochromeBitmapSource for more explanation * of the computation used in this method. */ - protected int getLuminance(int x, int y) { + public int getLuminance(int x, int y) { int pixel = pixels[y * getWidth() + x]; return (((pixel & 0x00FF0000) >> 16) + ((pixel & 0x0000FF00) >> 7) + (pixel & 0x000000FF )) >> 2; } - protected int[] getLuminanceRow(int y, int[] row) { + public int[] getLuminanceRow(int y, int[] row) { int width = getWidth(); if (row == null || row.length < width) { row = new int[width]; @@ -76,7 +76,7 @@ public final class AWTImageMonochromeBitmapSource extends BaseMonochromeBitmapSo return row; } - protected int[] getLuminanceColumn(int x, int[] column) { + public int[] getLuminanceColumn(int x, int[] column) { int height = getHeight(); int width = getWidth(); if (column == null || column.length < height) {