This project has moved. For the latest updates, please go here.

Displaying Encoded Contents Option (WP7)

Mar 15, 2012 at 1:24 AM

Hi Michael

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

Example:

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

Craig

Coordinator
Mar 16, 2012 at 7: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.