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 Dart. 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 'dart:io';
import 'dart:typed_data';
import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart';
Configuration makeConfiguration() {
final envToken = Platform.environment['TEST_CONFIGURATION_ACCESS_TOKEN'];
if (envToken != null) {
return Configuration(accessToken: envToken);
} else {
return Configuration(
clientId: "Client Id from https://dashboard.aspose.cloud/applications",
clientSecret:
"Client Secret from https://dashboard.aspose.cloud/applications",
);
}
}
Future<void> main() async {
final configuration = makeConfiguration();
final apiClient = ApiClient(configuration);
final generateApi = GenerateApi(apiClient);
final fileName =
'${Directory.current.path}${Platform.pathSeparator}test_data${Platform.pathSeparator}qr.png';
final Uint8List response = await generateApi.generate(
EncodeBarcodeType.QR,
"Aspose.BarCode.Cloud",
barcodeImageParams: BarcodeImageParams()
..imageFormat = BarcodeImageFormat.Png
..foregroundColor = "Black"
..backgroundColor = "White"
..textLocation = CodeLocation.Below
..resolution = 300
..imageHeight = 200
..imageWidth = 200,
qrParams: QrParams()
..qrEncodeMode = QREncodeMode.Auto
..qrErrorLevel = QRErrorLevel.LevelM
..qrVersion = QRVersion.Auto
..qrAspectRatio = 0.75,
);
await File(fileName).writeAsBytes(response);
print("File '$fileName' generated.");
}
Result Image is: 
import 'dart:io';
import 'dart:typed_data';
import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart';
Configuration makeConfiguration() {
final envToken = Platform.environment['TEST_CONFIGURATION_ACCESS_TOKEN'];
if (envToken != null) {
return Configuration(accessToken: envToken);
} else {
return Configuration(
clientId: "Client Id from https://dashboard.aspose.cloud/applications",
clientSecret:
"Client Secret from https://dashboard.aspose.cloud/applications",
);
}
}
Future<void> main() async {
final configuration = makeConfiguration();
final apiClient = ApiClient(configuration);
final generateApi = GenerateApi(apiClient);
final file = File(
"${Directory.current.path}${Platform.pathSeparator}test_data${Platform.pathSeparator}QrCustom.jpeg",
);
final imageParams = BarcodeImageParams()
..foregroundColor = "#FF0000"
..backgroundColor = "#FFFF00"
..imageFormat = BarcodeImageFormat.Jpeg
..rotationAngle = 90;
final generateParams = GenerateParams(
EncodeBarcodeType.QR,
EncodeData("Aspose", EncodeDataType.StringData),
imageParams,
QrParams(
QREncodeMode.Auto,
QRErrorLevel.LevelM,
QRVersion.Auto,
null,
0.75,
));
final Uint8List response = await generateApi.generateBody(generateParams);
file.writeAsBytes(response);
print("File '${file.path}' generated.");
}
Result Image is: 
import 'dart:io';
import 'dart:typed_data';
import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart';
Configuration makeConfiguration() {
final envToken = Platform.environment['TEST_CONFIGURATION_ACCESS_TOKEN'];
if (envToken != null) {
return Configuration(accessToken: envToken);
} else {
return Configuration(
clientId: "Client Id from https://dashboard.aspose.cloud/applications",
clientSecret:
"Client Secret from https://dashboard.aspose.cloud/applications",
);
}
}
Future<void> main() async {
final configuration = makeConfiguration();
final apiClient = ApiClient(configuration);
final generateApi = GenerateApi(apiClient);
final file = File(
"${Directory.current.path}${Platform.pathSeparator}test_data${Platform.pathSeparator}Pdf417.svg",
);
final Uint8List barcodeStream = await generateApi.generateMultipart(
EncodeBarcodeType.Pdf417,
"Aspose.BarCode.Cloud",
barcodeImageParams: BarcodeImageParams()
..textLocation = CodeLocation.Above
..imageFormat = BarcodeImageFormat.Svg,
pdf417Params: Pdf417Params()
..pdf417EncodeMode = Pdf417EncodeMode.Auto
..pdf417ErrorLevel = Pdf417ErrorLevel.Level2
..pdf417AspectRatio = 3,
);
file.writeAsBytes(barcodeStream);
print("File '${file.path}' generated.");
}
Result Image is:
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.