}
}
}
ByteMatrix bm;
try{
bm = writer.encode(contents, format, width, height,hints);
}catch(ClassCastException cce){
throw new Exception("ZXing Barcode Writer FAILURE - try different paramteres and pray");
}
//Bitmap b = BarcodeBitmap.createBitmap(bm,0);
Bitmap b = new Bitmap(width,height);
byte[][] array = bm.getArray();
//iterate through the matrix and draw the pixels to the image
//a Jeff and BT super hack to make generating a barcode work
for (int y = 0; y < height; y++) {
int[] argbArray = new int[width];
for (int x = 0; x < width; x++) {