Simplified Code39 and Code93 APIs
Apose.BarCode for Python via Java 24.7 brings enhanced APIs for Code39 and Code93 as they have been consolidated into CODE_39
and CODE_93
, respectively. This change aligns with the ISO/IEC 16388 standards and enables a more intuitive development experience.
Advanced SVG Color Support
Leverage new color modes like HSLA (Hue, Saturation, Lightness, Alpha) and RGBA (Red, Green, Blue, Alpha) in the Python API for barcode recognition and generation, and enjoy richer visuals when generating barcodes in SVG format.
Code example (set bar color using HSLA values):
def test2(self):
filePath = "Hsla_from_hsla_python.svg"
codeText = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
generator = Generation.BarcodeGenerator(Generation.EncodeTypes.CODE_128, codeText)
hslaColor = Generation.HslaColor(30, 50, 70, 0.8)
color = Generation.HslaColor.convertHslaToRgba(hslaColor)
generator.getParameters().getBarcode().setBarColor(color)
svg = generator.getParameters().getImage().getSvg()
svgColorMode = Generation.SvgColorMode
colorMode = svgColorMode.HSLA
svg.setSvgColorMode(colorMode)
generator.save(filePath, Generation.BarCodeImageFormat.PNG)
Source*
Code example (convert HSLA color to RGBA format):
def example3(self):
hslaColor = Generation.HslaColor(30, 50, 70, 0.8)
rgbaColor = Generation.HslaColor.convertHslaToRgba(hslaColor)
print(f"rgbaColor = {rgbaColor}")
Source*
You can view the list of all new features, enhancements, and bug fixes introduced in this release by visiting Aspose.BarCode for Python via Java 24.7 Release Notes.