}
else
{
- if (qrConfig.DataShape != QrShape.Rectangular || qrConfig.FinderShape != QrShape.Rectangular)
+ if (qrConfig.DataShape != QrShape.Rectangular || qrConfig.FinderShape != QrShape.Rectangular ||
+ qrConfig.EmbedImagePath != null)
{
config = new BarcodeGenerationConfiguration();
-
- SetDesignQrOptions(qrConfig, config);
}
}
+ SetDesignQrOptions(qrConfig, config);
+
return GenerateSource(config, message, BarcodeType.QR, (int)qrConfig.Mode,
(int)qrConfig.ErrorCorrectionLevel, qrConfig.Version);
}
}
else
{
- if (qrConfig.DataShape != QrShape.Rectangular || qrConfig.FinderShape != QrShape.Rectangular)
+ if (qrConfig.DataShape != QrShape.Rectangular || qrConfig.FinderShape != QrShape.Rectangular ||
+ qrConfig.EmbedImagePath != null)
{
config = new BarcodeGenerationConfiguration();
-
- SetDesignQrOptions(qrConfig, config);
}
}
+ SetDesignQrOptions(qrConfig, config);
+
GenerateImage(config, message, BarcodeType.QR, imageConfig, (int)qrConfig.Mode,
(int)qrConfig.ErrorCorrectionLevel, qrConfig.Version);
}