public static void Run()
{
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir_ManageBarCodesImages();
// Instantiate barcode object and set CodeText & Barcode Symbology
BarCodeBuilder barCodeBuilder = new BarCodeBuilder("1234567", EncodeTypes.Code128)
{
// Create an instance of resolution and apply on the barcode image with customized resolution settings
Resolution = new Resolution(200f, 400f, ResolutionMode.Customized)
};
// Save the image to your system and set its image format to Jpeg
barCodeBuilder.Save(dataDir + "barcode-image-resolution_out.jpeg", ImageFormat.Jpeg);
}
}