Class BarcodeParameters

Class BarcodeParameters

Tên không gian: Aspose.BarCode.Generation Tổng hợp: Aspose.BarCode.dll (25.4.0)

Các thông số Barcode Generation

[XmlSerialization(Name = "Aspose.BarCode.Reader.Properties.BarcodeParameters")]
public class BarcodeParameters

Inheritance

object BarcodeParameters

Thành viên thừa kế

object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Properties

AustralianPost

AustralianPost Barcode thông số.

[XmlSerialization(Type = XmlSerializationType.Element)]
public AustralianPostParameters AustralianPost { get; }

Giá trị bất động sản

AustralianPostParameters

Aztec

Các thông số Aztec

[XmlSerialization(Type = XmlSerializationType.Element)]
public AztecParameters Aztec { get; }

Giá trị bất động sản

AztecParameters

BarColor

Bar màuGiá trị mặc định: Color.Black

[XmlSerialization(Type = XmlSerializationType.Element)]
public Color BarColor { get; set; }

Giá trị bất động sản

Color

BarHeight

Kích thước của 1D barcodes trong Aspose.BarCode.Generation.Unit giá trị.Không biết nếu thuộc tính Aspose.BarCode.Generation.BaseGenerationParameters.AutoSizeMode được thiết lập cho AutoSizeMode.Nearest hoặc AutoSizeMode.Interpolation.

[XmlSerialization(Type = XmlSerializationType.Element, Name = "BarHeight")]
public Unit BarHeight { get; set; }

Giá trị bất động sản

Unit

BarWidthReduction

Nhận hoặc đặt thanh giảm giá trị được sử dụng để bù đắp sự lây lan trong khi in.Giá trị mặc định: 0

public Unit BarWidthReduction { get; set; }

Giá trị bất động sản

Unit

ChecksumAlwaysShow

Luôn hiển thị số checksum trong văn bản dễ đọc của con người cho Code128 và GS1Code128 mã thanh.

[XmlSerialization(Type = XmlSerializationType.Element)]
public bool ChecksumAlwaysShow { get; set; }

Giá trị bất động sản

bool

Codabar

Các thông số Codabar

[XmlSerialization(Type = XmlSerializationType.Element)]
public CodabarParameters Codabar { get; }

Giá trị bất động sản

CodabarParameters

Codablock

Cấu hình Codablock

[XmlSerialization(Type = XmlSerializationType.Element)]
public CodablockParameters Codablock { get; }

Giá trị bất động sản

CodablockParameters

Code128

Mã số 128

[XmlSerialization(Type = XmlSerializationType.Element)]
public Code128Parameters Code128 { get; }

Giá trị bất động sản

Code128Parameters

Mã 16K

Tính năng của Code16K

[XmlSerialization(Type = XmlSerializationType.Element)]
public Code16KParameters Code16K { get; }

Giá trị bất động sản

Code16KParameters

CodeTextParameters

Cấu hình Codetext

[XmlSerialization(Type = XmlSerializationType.Element, Name = "CodeTextParameters")]
public CodetextParameters CodeTextParameters { get; }

Giá trị bất động sản

CodetextParameters

Coupon

Sử dụng cho UpcaGs1DatabarCoupon, UpcaGs1Code128Coupon.

[XmlSerialization(Type = XmlSerializationType.Element)]
public CouponParameters Coupon { get; }

Giá trị bất động sản

CouponParameters

DataBar

Các thông số Databar

[XmlSerialization(Type = XmlSerializationType.Element)]
public DataBarParameters DataBar { get; }

Giá trị bất động sản

DataBarParameters

DataMatrix

Các thông số DataMatrix

[XmlSerialization(Type = XmlSerializationType.Element)]
public DataMatrixParameters DataMatrix { get; }

Giá trị bất động sản

DataMatrixParameters

DotCode

Các thông số DotCode

[XmlSerialization(Type = XmlSerializationType.Element)]
public DotCodeParameters DotCode { get; }

Giá trị bất động sản

DotCodeParameters

EnableEscape

Hiển thị liệu nó giải thích nhân vật "" như một nhân vật thoát trong tài sản CodeText. Sử dụng cho Pdf417, DataMatrix, Code128 chỉNếu EnableEscape là đúng, "" sẽ được giải thích như một nhân vật trốn thoát đặc biệt.Aspose.BarCode hỗ trợ nhập mã ascii thập kỷ và mnemonic cho các ký tự mã điều khiển ASCII. Ví dụ, \013 và \CR có nghĩa là CR.

[XmlSerialization(Type = XmlSerializationType.Element)]
public bool EnableEscape { get; set; }

Giá trị bất động sản

bool

FilledBars

Nhận hoặc đặt một giá trị cho thấy liệu các thanh đã đầy hay không.Chỉ dành cho 1D barcodesGiá trị giả định: True.

[XmlSerialization(Type = XmlSerializationType.Element)]
public bool FilledBars { get; set; }

Giá trị bất động sản

bool

GS1CompositeBà

Tính năng của GS1 Composite Bar

[XmlSerialization(Type = XmlSerializationType.Element)]
public GS1CompositeBarParameters GS1CompositeBar { get; set; }

Giá trị bất động sản

GS1CompositeBarParameters

Examples

Mẫu này cho thấy làm thế nào để tạo và lưu một GS1 Composite Bar hình ảnh.Lưu ý rằng 1D codetext và 2D codetext được tách biệt bởi biểu tượng ‘màu’

var codetext = "(01)03212345678906|(21)A1B2C3D4E5F6G7H8";
  using (var generator = new BarcodeGenerator(EncodeTypes.GS1CompositeBar, codetext))
  {
      generator.Parameters.Barcode.GS1CompositeBar.LinearComponentType = EncodeTypes.GS1Code128;
      generator.Parameters.Barcode.GS1CompositeBar.TwoDComponentType = TwoDComponentType.CC_A;

      // Aspect ratio of 2D component
      generator.Parameters.Barcode.Pdf417.AspectRatio = 3;

      // X-Dimension of 1D and 2D components
      generator.Parameters.Barcode.XDimension.Pixels = 3;

      // Height of 1D component
      generator.Parameters.Barcode.BarHeight.Pixels = 100;

      generator.Save("test.png");
  }

HanXin

Các thông số HanXin

[XmlSerialization(Type = XmlSerializationType.Element)]
public HanXinParameters HanXin { get; }

Giá trị bất động sản

HanXinParameters

ITF

Các thông số ITF

[XmlSerialization(Type = XmlSerializationType.Element)]
public ITFParameters ITF { get; }

Giá trị bất động sản

ITFParameters

IsChecksumEnabled

Khả năng checksum trong quá trình tạo ra 1D barcodes.

Theo mặc định, nó được xử lý như là Có cho biểu tượng mà phải chứa checksum, như Không nơi checksum chỉ có thể.

Checksum có thể: Code39 Standard/Extended, Standard2of5, Interleaved2of5, Matrix2of5, ItalianPost25, DeutschePostIdentcode, DeutschePostLeitcode, VIN, Codabar

Checksum luôn được sử dụng: biểu tượng nghỉ ngơi

[XmlSerialization(Type = XmlSerializationType.Element)]
public EnableChecksum IsChecksumEnabled { get; set; }

Giá trị bất động sản

EnableChecksum

MaxiCode

Các thông số MaxiCode

[XmlSerialization(Type = XmlSerializationType.Element)]
public MaxiCodeParameters MaxiCode { get; }

Giá trị bất động sản

MaxiCodeParameters

Padding

Barcode của PaddingsGiá trị mặc định: 5pt 5pt 5pt.

[XmlSerialization(Type = XmlSerializationType.Element)]
public Padding Padding { get; }

Giá trị bất động sản

Padding

PatchCode

Các thông số PatchCode

[XmlSerialization(Type = XmlSerializationType.Element)]
public PatchCodeParameters PatchCode { get; }

Giá trị bất động sản

PatchCodeParameters

Pdf417

Các thông số PDF417

[XmlSerialization(Type = XmlSerializationType.Element)]
public Pdf417Parameters Pdf417 { get; }

Giá trị bất động sản

Pdf417Parameters

Postal

Các thông số bưu điện. được sử dụng cho Postnet, Planet.

[XmlSerialization(Type = XmlSerializationType.Element)]
public PostalParameters Postal { get; }

Giá trị bất động sản

PostalParameters

QR

Các thông số QR, MicroQR và RectMicroQR

[XmlSerialization(Type = XmlSerializationType.Element)]
public QrParameters QR { get; }

Giá trị bất động sản

QrParameters

Supplement

Sử dụng cho Interleaved2of5, Standard2of5, EAN13, EAN8, UPCA, UPCE, ISBN, ISSN, ISMN.

[XmlSerialization(Type = XmlSerializationType.Element)]
public SupplementParameters Supplement { get; }

Giá trị bất động sản

SupplementParameters

ThrowExceptionWhenCodeTextIncorrect

Chỉ dành cho 1D barcodesNếu codetext là sai và giá trị được đặt đúng - ngoại lệ sẽ bị ném. nếu không codetext sẽ được sửa đổi để phù hợp với thông số kỹ thuật của barcode.Ngoại lệ sẽ luôn được ném cho: biểu tượng Databar nếu codetext là sai.Ngoại lệ sẽ không bao giờ được ném cho: AustraliaPost, SingaporePost, Code39FullASCII, Code93, Code16K, Code128 biểu tượng nếu codtext là sai.

[XmlSerialization(Type = XmlSerializationType.Element)]
public bool ThrowExceptionWhenCodeTextIncorrect { get; set; }

Giá trị bất động sản

bool

WideNarrowRatio

Wide bars to Narrow bars tỷ lệ.Giá trị mặc định: 3, tức là, các thanh rộng là 3 lần rộng như các thanh mỏng.Sử dụng cho ITF, PZN, PharmaCode, Standard2of5, Interleaved2of5, Matrix2of5, ItalianPost25, IATA2of5, VIN, DeutschePost, OPC, Code32, DataLogic2of5, PatchCode, Code39, Code39FullASCII

[XmlSerialization(Type = XmlSerializationType.Element)]
public float WideNarrowRatio { get; set; }

Giá trị bất động sản

float

Exceptions

ArgumentException

Giá trị của thông số là ít hơn hoặc bằng 0.

XD kích thước

X-dimension là chiều rộng nhỏ nhất của đơn vị của BarCode thanh hoặc không gian.Tăng điều này sẽ làm tăng toàn bộ chiều rộng hình ảnh barcode.Không biết nếu thuộc tính Aspose.BarCode.Generation.BaseGenerationParameters.AutoSizeMode được thiết lập cho AutoSizeMode.Nearest hoặc AutoSizeMode.Interpolation.

[XmlSerialization(Type = XmlSerializationType.Element)]
public Unit XDimension { get; set; }

Giá trị bất động sản

Unit

 Tiếng Việt