This project has moved and is read-only. For the latest updates, please go here.

Displaying Encoded Contents Option (WP7)

Mar 15, 2012 at 2:24 AM

Hi Michael

Is it possible to overload the ToBitMap method to render the encoded value as part of generating the bitmap?


MultiFormatWriter writer = new MultiFormatWriter(); 
BitMatrix result = writer.encode("CR01234567890", BarcodeFormat.CODE_128, 100, 100);
WriteableBitmap bitmap = result.ToBitmap(BarcodeFormat.CODE_128, "CR01234567890");

This method should generated the bitmap with the barcode and the encoded value i.e. CR01234567890 underneath it.  In the case of say UPC-A the encoded string (as numeric values) would display in the appropiate format for this barcode type:

Example barcode images with encoded values displayed

Kind regards


Mar 16, 2012 at 8:29 PM

It's one of my goals for the library. Please take a look at the winforms demo client. That version of the library generates the content of the barcode underneath. But I didn't have success with the WriteableBitmap class of silverlight.

On the other hand I need some time for refactoring the ToBitmap method. It is not as flexible as it should be.