Bar codes can easily be exported to any image format supported by WPF, including PNG, BMP, GIF, JPEG, and TIFF image formats.
It's easy to generate a BitmapSource
from a symbology, simply by calling its To
Sample Code
This sample code creates a BitmapSource
from a Code 39 extended bar code.
This sample code takes the BitmapSource
from the previous sample code and writes it to a PNG file whose path is assumed to be in outputPath
.