Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Highlighted
Contributor
Posts: 14
Registered: ‎05-18-2011
My Device: 9300, 9700
My Carrier: T-Mobile

How to implements BitmapLuminanceSource

How to implements BitmapLuminanceSource in Blackberry 5.0 SDK, since there's no built-in barcode api.

I'm not using 6.0 at the moment, because of the targeted device is running on 5.0

 

 

 

public class BitmapLuminanceSource extends LuminanceSource {
	
	private final Bitmap bitmap;
	
	public BitmapLuminanceSource(Bitmap bitmap){
		super(bitmap.getWidth(),bitmap.getHeight());
		this.bitmap = bitmap;
	}

	public byte[] getRow(int y, byte[] row) {
		return null;
	}

	public byte[] getMatrix() {
		return null;
	}
}

 

 

Until you spread your wings, You will have no idea how far you can fly