Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
This documentation explains how to customize the appearance of barcodes using the Aspose.BarCode Cloud SDK for Swift. It provides details on the available methods, customization options, and examples of usage.
When generating a barcode, you can customize various aspects of its appearance using the properties of the request classes.
Key Properties:
QR, Aztec, Pdf417, Code39, etc).Png, Jpeg, Svg).AliceBlue or #FF000000).Below, Above, None).Pixel, Inch, Millimeter).In addition to the common appearance settings above, the API exposes advanced parameters that apply only to specific barcode types. They are ignored when a different barcode type is generated.
Auto, Extended, Binary, ECI).LevelL, LevelM, LevelQ, LevelH).Auto, Version01–Version40). Auto selects the smallest version that fits the data.UTF8, ISO_8859_1).0 to 1.Auto, M1–M4). Used when the barcode type is MicroQR.Auto, R7x43–R17x139). Used when the barcode type is RectMicroQR.Auto, CodeA, CodeB, CodeAB, CodeC, CodeAC, CodeBC).Auto, Binary, ECI, Extended).Level0–Level8).1–30, or 0 for auto).3–90, or 0 for automatic).2–5 for MicroPDF417; 3–5 for PDF417 and MacroPDF417).None, Macro05, Macro06).import AsposeBarcodeCloud
import Foundation
let client = AsposeBarcodeCloudClient(
clientId: "Client Id from https://dashboard.aspose.cloud/applications",
clientSecret: "Client Secret from https://dashboard.aspose.cloud/applications"
)
let imageData = try await GenerateAPI.generate(
barcodeType: .code128,
data: "Aspose.BarCode Cloud",
barcodeImageParams: BarcodeImageParams(
imageFormat: .png,
textLocation: .above,
rotationAngle: 90
),
code128Params: Code128Params(code128EncodeMode: .codeB),
apiConfiguration: client.apiConfiguration
)
try imageData.write(to: URL(fileURLWithPath: "code128-appearance.png"))
print("File 'code128-appearance.png' generated.")
Result Image is: 
import AsposeBarcodeCloud
import Foundation
let client = AsposeBarcodeCloudClient(
clientId: "Client Id from https://dashboard.aspose.cloud/applications",
clientSecret: "Client Secret from https://dashboard.aspose.cloud/applications"
)
let generateParams = GenerateParams(
barcodeType: .qr,
encodeData: EncodeData(data: "Aspose.BarCode Cloud"),
barcodeImageParams: BarcodeImageParams(
imageFormat: .jpeg,
foregroundColor: "DarkBlue",
backgroundColor: "White",
rotationAngle: 180
),
qrParams: QrParams(
qrEncodeMode: .auto,
qrErrorLevel: .levelH,
qrVersion: .auto
)
)
let imageData = try await GenerateAPI.generateBody(
generateParams: generateParams,
apiConfiguration: client.apiConfiguration
)
try imageData.write(to: URL(fileURLWithPath: "qr-appearance.jpeg"))
print("File 'qr-appearance.jpeg' generated.")
Result Image is: 
import AsposeBarcodeCloud
import Foundation
let client = AsposeBarcodeCloudClient(
clientId: "Client Id from https://dashboard.aspose.cloud/applications",
clientSecret: "Client Secret from https://dashboard.aspose.cloud/applications"
)
let imageData = try await GenerateAPI.generateMultipart(
barcodeType: .pdf417,
data: "Aspose.BarCode Cloud",
barcodeImageParams: BarcodeImageParams(
imageFormat: .svg,
foregroundColor: "Black",
backgroundColor: "White"
),
pdf417Params: Pdf417Params(
pdf417EncodeMode: .auto,
pdf417ErrorLevel: .level4,
pdf417Columns: 6,
pdf417Rows: 12
),
apiConfiguration: client.apiConfiguration
)
try imageData.write(to: URL(fileURLWithPath: "pdf417-appearance.svg"))
print("File 'pdf417-appearance.svg' generated.")
Result Image is:
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.