We are using this code
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir_ManageBarCodesImages();
// Instantiate barcode object and set CodeText & Barcode Symbology
BarcodeGenerator generator = new BarcodeGenerator (EncodeTypes.Code128);
generator.CodeText = “1234567”;
generator.Parameters.Resolution = 300f;
// Save the image to your system and set its image format to Jpeg
generator.Save(dataDir + “barcode-image-resolution_out.jpeg”, BarCodeImageFormat.Jpeg);
I am unable to save a barcode image to a file that is at the resolution I specified. If I use 300 as in the example above, I get an image that is 240dpi. The documentation says I should be able to go to 400dpi but when I use values above 240 I still end up with a 240dpi image according to Infraview 64bit.
Is this a bug or must I do something else to write to a file in the correct DPI?