From 05fd8281c0f3f9e3f9167d89c02f001dcaa79414 Mon Sep 17 00:00:00 2001 From: Aleksander Date: Sat, 8 Feb 2025 15:34:54 +0200 Subject: [PATCH] Fixed and improved the content of pages related to the Aspose.Barcode for Android via Java product. --- androidjava/_index.md | 25 ++-- .../saving-generated-barcodes/_index.md | 123 +++++++++++++----- .../_index.md | 72 ++++++---- 3 files changed, 153 insertions(+), 67 deletions(-) diff --git a/androidjava/_index.md b/androidjava/_index.md index f5539fac..7fe6f934 100644 --- a/androidjava/_index.md +++ b/androidjava/_index.md @@ -14,16 +14,25 @@ description: Android Barcode API provides the tools to generate barcode images a **Welcome to Aspose.BarCode for Android via Java** -Aspose.BarCode for Android via Java API provides developers with tools required to generate barcode images and read barcodes in Android applications. You can not only generate barcodes of different types but also modify their properties and size. You can also customize the appearance of barcode elements and text. +***Aspose.BarCode for Android via Java*** is a powerful library for barcode generation and recognition, +designed for seamless integration into Android applications. It provides a comprehensive set of classes for backend barcode +processing, along with GUI-based controls. Supporting most existing barcode standards and specifications, +Aspose.BarCode for Android via Java ensures high compatibility. In addition to barcode generation, the library +offers advanced features for managing key aspects of barcode processing, making it a versatile tool for +developers. {{% /alert %}} -## **Aspose.BarCode for Android via Java Resources** +## **Aspose.BarCode for Android via Java Resources** -Following are the links to some useful resources you may need to accomplish your tasks. +

Following are the links to some useful resources you may need to accomplish your tasks:

+ + -- [Aspose.BarCode for Java Online Documentation](/barcode/androidjava/) -- [Aspose.BarCode for Android via Java Features](/barcode/java/aspose-barcode-for-android-via-java-features/) -- [Aspose.BarCode for Android via Java Release Notes](https://releases.aspose.com/barcode/androidjava/release-notes/) -- [Aspose.BarCode for Android via Java Product Page](https://products.aspose.com/barcode/android-java/) -- [Aspose.BarCode for Android via Java API Reference Guide](https://reference.aspose.com/java/barcode/)  diff --git a/androidjava/developer-guide/barcode-generation/saving-generated-barcodes/_index.md b/androidjava/developer-guide/barcode-generation/saving-generated-barcodes/_index.md index ba73fa92..16843ae3 100644 --- a/androidjava/developer-guide/barcode-generation/saving-generated-barcodes/_index.md +++ b/androidjava/developer-guide/barcode-generation/saving-generated-barcodes/_index.md @@ -6,16 +6,22 @@ description: "How to Save Generated Barcodes in Aspose.BarCode for Android" keywords: "Generate Barcodes, Save Barcode in Android, Download Barcode in Aspose.BarCode for Android, Generate Barcodes in Aspose.BarCode, Save To File Aspose Barcode, Barcode Vector Format, Generate Vector Barcodes, Save Barcode as JPEG, Save Barcode as PNG, Save Barcode as BMP, Save Barcode as TIFF, Save Barcode as GIF" url: /androidjava/barcode-image-saving/ --- - -This article outlines the ways of outputting generated barcode images as files, streams, or bitmaps, as well as various raster (PNG, JPEG, BMP, GIF, and TIFF) and vector (SVG and EMF) image file formats. - ## **Overview** -During barcode generation, it may be required to save barcode images not only in common raster image formats but also as streams or vector files. ***Aspose.BarCode for Android via Java*** enables different options of saving generated barcodes: five common image formats, two vector formats, and some other ways, such as outputting barcode labels to a file, stream, or a bitmap). These options are discussed further. -{{% alert color="primary" %}}*If you need any clarifications, feel free to reach out [Aspose Technical Support](/barcode/java/technical-support/): ask your questions at [Aspose.Barcode Forum](https://forum.aspose.com/c/barcode/13) or contact [Aspose Paid Support Helpdesk](https://helpdesk.aspose.com/).*{{% /alert %}} +During barcode generation, it may be required to save barcode images not only in common raster image formats +but also as streams or vector files. ***Aspose.BarCode for Android via Java*** enables different options of +saving generated barcodes: five common image formats, two vector formats, and some other ways, such as +outputting barcode labels to a file, stream, or a bitmap). These options are discussed further. + +{{% alert color="primary" %}}*If you need any clarifications, feel free to reach +out [Aspose Technical Support](/barcode/java/technical-support/): ask your questions +at [Aspose.Barcode Forum](https://forum.aspose.com/c/barcode/13) or +contact [Aspose Paid Support Helpdesk](https://helpdesk.aspose.com/).*{{% /alert %}} ## **Saving to File** -***Aspose.BarCode for Android via Java*** enables saving generated barcode images as files in the desired format. + +***Aspose.BarCode for Android via Java*** enables saving generated barcode images as files in the desired +format. ## **Saving to Stream** -It may be necessary to output generated barcode images in the form of a stream, in other words, in a binary format. A stream can be viewed as a byte sequence abstraction. To save barcode images as streams, class [*BarcodeGenerator*](https://reference.aspose.com/barcode/androidjava/com.aspose.barcode.generation/BarcodeGenerator) provides the public method *save*. + +It may be necessary to output generated barcode images in the form of a stream, in other words, in a binary +format. A stream can be viewed as a byte sequence abstraction. To save barcode images as streams, class [ +*BarcodeGenerator*](https://reference.aspose.com/barcode/androidjava/com.aspose.barcode.generation/BarcodeGenerator) +provides the public method *save*. ## **Saving as Bitmap** -***Aspose.BarCode for Android via Java*** enables saving barcode images in the form of bitmap objects and then converting it to the required format or using it in graphical transformations. These objects can be fetched from instances of class [*BarcodeGenerator*](https://reference.aspose.com/barcode/androidjava/com.aspose.barcode.generation/BarcodeGenerator) through the *generateBarCodeImage* method and then processed further. + +***Aspose.BarCode for Android via Java*** enables saving barcode images in the form of bitmap objects and then +converting it to the required format or using it in graphical transformations. These objects can be fetched +from instances of class [ +*BarcodeGenerator*](https://reference.aspose.com/barcode/androidjava/com.aspose.barcode.generation/BarcodeGenerator) +through the *generateBarCodeImage* method and then processed further. - + The sample BMP barcode image is given below. - +

### **PNG Format** -Portable Network Graphics (PNG) is a raster image format that is used for lossless data compression. This format is the most preferable to generate barcode labels. Images created using this format have 32-bit color depth and no losses. + +Portable Network Graphics (PNG) is a raster image format that is used for lossless data compression. This +format is the most preferable to generate barcode labels. Images created using this format have 32-bit color +depth and no losses. - + The sample barcode image in the PNG format is provided below. - +

### **GIF Format** -Graphics Interchange Format (GIF) is a lossless raster file format that supports only 256 colors and enables creating both static and animated images. ***Aspose.BarCode for Android via Java*** allows using this format only for black and white raster images. The code following code snippet explains how to generate barcodes in the GIF format. - + +Graphics Interchange Format (GIF) is a lossless raster file format that supports only 256 colors and enables +creating both static and animated images. ***Aspose.BarCode for Android via Java*** allows using this format +only for black and white raster images. The code following code snippet explains how to generate barcodes in +the GIF format. + - + The GIF barcode image generated using this code is shown below. - +

### **JPEG Format** -JPEG is a common image file format used for lossy and compressed image data. As a result of compression, generating JPEG images require finding a trade-off between image quality and storage size and therefore often have artifacts and graphical noises. This file format is not recommended for barcode generation. The following code sample shows how to create JPEG barcode images. + +JPEG is a common image file format used for lossy and compressed image data. As a result of compression, +generating JPEG images require finding a trade-off between image quality and storage size and therefore often +have artifacts and graphical noises. This file format is not recommended for barcode generation. The following +code sample shows how to create JPEG barcode images. - + The example of a JPEG barcode image is given below. - +

### **TIFF (TIFFInCMYK) Format** -Tagged Image File Format (TIFF) is a lossless raster image format that allows creating images of very high quality and 32-bit color. Only a variation of this format, TIFFInCMYK, supports the CMYK color scheme. The code snippet provided below explains how to generate barcode images in the TIFF format. + +Tagged Image File Format (TIFF) is a lossless raster image format that allows creating images of very high +quality and 32-bit color. Only a variation of this format, TIFFInCMYK, supports the CMYK color scheme. The +code snippet provided below explains how to generate barcode images in the TIFF format. TIFF and TIFFInCMYK barcode images are given below. - -|Output Format|TIFF|TIFFInCMYK| -| :-: | :-: | :-: | -| ||| - + +| Output Format | TIFF | TIFFInCMYK | +|:-------------:|:-------------------------------------------------------------------------------------------------:|:-------------------------------------------------------------------------------------------------------------:| +| | | | + ## **Vector Image Formats** -Vector image formats represent images as a set of graphical operations executed consequently on a graphics unit. Vector images can be generated through mathematical formulas that specify points on a grid. This format allows scaling without resolution losses. Accordingly, vector image formats may be more suitable than raster ones in some cases. ***Aspose.BarCode for Android via Java*** supports outputting barcode images in two vector formats: EMF and SVG. + +Vector image formats represent images as a set of graphical operations executed consequently on a graphics +unit. Vector images can be generated through mathematical formulas that specify points on a grid. This format +allows scaling without resolution losses. Accordingly, vector image formats may be more suitable than raster +ones in some cases. ***Aspose.BarCode for Android via Java*** supports outputting barcode images in two vector +formats: EMF and SVG. ### **EMF Format** -Enhanced Metafile (EMF) is a vector image format that is device-independent and is commonly used in Windows operating systems for printing tasks. An EMF image file comprise variable-length records in chronological order. Then, a vector image can be rendered on any output device. Such records can serve to represent objects, drawing commands, and graphics parameters that are critical to render vector images. When a digital device opens an EMF metafile through its graphics environment, dimension paraneters, proportions, color scheme, and other graphics properties of the source image do not get altered on any platform. + +Enhanced Metafile (EMF) is a vector image format that is device-independent and is commonly used in Windows +operating systems for printing tasks. An EMF image file comprise variable-length records in chronological +order. Then, a vector image can be rendered on any output device. Such records can serve to represent objects, +drawing commands, and graphics parameters that are critical to render vector images. When a digital device +opens an EMF metafile through its graphics environment, dimension paraneters, proportions, color scheme, and +other graphics properties of the source image do not get altered on any platform. - -

+

### **SVG Format** -Scalable Vector Graphics (SVG) corresponds to an vector image format based on XML. It is used to create two-dimensional images in web applications. In SVG images, the image appearance is described in XML text. Such files can be scaled to various size measures keeping resolution quality. Accordingly, this vector image format is suitable for websites and graphics printing owing to its capability to resize images in line with various design requirements. - + +Scalable Vector Graphics (SVG) corresponds to an vector image format based on XML. It is used to create +two-dimensional images in web applications. In SVG images, the image appearance is described in XML text. Such +files can be scaled to various size measures keeping resolution quality. Accordingly, this vector image format +is suitable for websites and graphics printing owing to its capability to resize images in line with various +design requirements. + - +

\ No newline at end of file diff --git a/androidjava/getting-started/aspose-barcode-for-android-via-java-features/_index.md b/androidjava/getting-started/aspose-barcode-for-android-via-java-features/_index.md index 964bcbe4..f1fde56a 100644 --- a/androidjava/getting-started/aspose-barcode-for-android-via-java-features/_index.md +++ b/androidjava/getting-started/aspose-barcode-for-android-via-java-features/_index.md @@ -6,29 +6,53 @@ url: /java/aspose-barcode-for-android-via-java-features/ --- ## **Aspose.BarCode for Android via Java** -### **General Barcode Features** -- Specify different kinds of symbologies. -- Barcode Code text (data to be encoded to barcode image) can be set and its appearance-related properties like font, back color, fore color, alignment and location (hide, above, below) etc. can also be modified. -- Barcode Caption and its font, back color, fore color, alignment and location (hide, above, below) can be managed. -- Checksum and Supplement Data are supported. -- The bar height of the barcode images can be customized. -- X-dimension, Y-dimension (for 2D BarCodes) are also supported. -- Code128 encoding is exceptionally optimized. -- Wide to Narrow Ratio can be achieved for supported symbologies. -### **Barcode Recognition Features** -- Aspose.BarCode.BarCodeReader reads the most common 1D, 2D barcodes anywhere at any angle from an image. -### **Barcode Imaging Features** -- Manipulate barcode image borders, border color, style, margins & width etc. -- Barcode image color, back color, and bar color can be modified. -- Rotate barcode images to any degree. -- High-Quality barcode images. -- Anti-Aliasing for barcode images. -- Barcode Image MarginsF can be managed. -- Customized Resolution. -- Size in inches and millimeters. -- Auto Sizing of barcode images. -- Create barcode images to image formats like JPEG, TIFF, PNG, TIFF, WMF, metafile etc. -- Render barcode images on any device and create device resolution dependent images. +### **General Features of Aspose.BarCode for Android via Java** +- Generate and identify barcodes efficiently +- Support for **80+ barcode symbologies**, including **1D, 2D, DataBar, Postal, HIBC, and GS1 types** +- Customize barcode appearance settings +- Rotate barcode images as needed +- Encode and decode **non-English characters** in 2D barcodes +- Fine-tune recognition engine parameters for better accuracy +- Save and load barcodes from **streams or files** +- Print barcode labels efficiently +- Work with **complex barcodes**, such as **Swiss QR Code** + +## **Barcode Recognition Features** + +- **BarCodeReader class**: Read **1D and 2D barcodes** at any angle from an image +- Support for multiple **image formats** +- Reading images with resolutions ranging from 75 to 600 dpi +- **Recognize barcodes in challenging conditions**, such as **blurry, noisy, or damaged images** +- **Specify targeted scan areas** within an image for faster and more precise recognition +- **Predefine barcode symbologies** to optimize the recognition process +- **Fine-tune the recognition engine** for the best balance between speed and accuracy (manually or using built-in presets). + Examples of supported scenarios: + - Color barcodes on color backgrounds + - Dashed industrial **DataMatrix** barcodes + - Scaled-down images + - Damaged barcodes with incorrect text + - Corrupted **QR Codes** and more + +- **Detect and read all barcodes** within the specified scan region + +- **Read multiple barcode** from a single scanned area +- **Retrieve angle and region information** for each recognized barcode (bounding region can be defined using points, quadrangles, or rectangles) +- **Perform checksum validation** for **1D and postal barcodes** +- **Enhance detection speed** using **multi-threading** +- **Extract barcodes from PDFs** using **Aspose.PDF** + +## **Barcode Generation Features in Aspose.BarCode for Android via Java** + +- **Class BarcodeGenerator**: Generate barcode labels with customizable settings +- **Extensive barcode customization options**, including size, resolution, height, background color, bar color, rotation angle, X-dimension, image quality, captions, wide-to-narrow ratio, and more +- Save barcodes in multiple image formats +- **Configure barcode encoding types and parameters** for enhanced flexibility +- **Support checksum addition** for **1D barcodes** and **supplementary data** +- **Adjust X- and Y-dimensions** for **2D barcodes** +- **Fine-tune wide-to-narrow ratios** for supported symbologies to improve recognition accuracy +- **Set encoding types for 2D barcodes**, including **Error Checking and Correcting (ECC)** and **Extended Channel Interpretation (ECI)** +- **Encode DataMatrix barcodes** using **X12, EDIFACT, and Base 256** + #### **Input Image Formats** - JPEG - PNG @@ -45,7 +69,7 @@ url: /java/aspose-barcode-for-android-via-java-features/ - EMF - PDF ### **Platforms Supported** -- Starting with Android SDK 26 and Android 8.0 (Oreo). +- Supported starting from Android 8.0 (Oreo) - SDK 26. ### **Supported Barcode Symbologies** ***Aspose.BarCode for Android via Java*** supports over 80 different barcode types used in a