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
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
Aztec
Các thông số Aztec
[XmlSerialization(Type = XmlSerializationType.Element)]
public AztecParameters Aztec { get; }
Giá trị bất động sản
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
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
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
Codabar
Các thông số Codabar
[XmlSerialization(Type = XmlSerializationType.Element)]
public CodabarParameters Codabar { get; }
Giá trị bất động sản
Codablock
Cấu hình Codablock
[XmlSerialization(Type = XmlSerializationType.Element)]
public CodablockParameters Codablock { get; }
Giá trị bất động sản
Code128
Mã số 128
[XmlSerialization(Type = XmlSerializationType.Element)]
public Code128Parameters Code128 { get; }
Giá trị bất động sản
Mã 16K
Tính năng của Code16K
[XmlSerialization(Type = XmlSerializationType.Element)]
public Code16KParameters Code16K { get; }
Giá trị bất động sản
CodeTextParameters
Cấu hình Codetext
[XmlSerialization(Type = XmlSerializationType.Element, Name = "CodeTextParameters")]
public CodetextParameters CodeTextParameters { get; }
Giá trị bất động sản
Coupon
Sử dụng cho UpcaGs1DatabarCoupon, UpcaGs1Code128Coupon.
[XmlSerialization(Type = XmlSerializationType.Element)]
public CouponParameters Coupon { get; }
Giá trị bất động sản
DataBar
Các thông số Databar
[XmlSerialization(Type = XmlSerializationType.Element)]
public DataBarParameters DataBar { get; }
Giá trị bất động sản
DataMatrix
Các thông số DataMatrix
[XmlSerialization(Type = XmlSerializationType.Element)]
public DataMatrixParameters DataMatrix { get; }
Giá trị bất động sản
DotCode
Các thông số DotCode
[XmlSerialization(Type = XmlSerializationType.Element)]
public DotCodeParameters DotCode { get; }
Giá trị bất động sản
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.
[XmlSerialization(Type = XmlSerializationType.Element)]
public bool EnableEscape { get; set; }
Giá trị bất động sản
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
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
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
ITF
Các thông số ITF
[XmlSerialization(Type = XmlSerializationType.Element)]
public ITFParameters ITF { get; }
Giá trị bất động sản
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
MaxiCode
Các thông số MaxiCode
[XmlSerialization(Type = XmlSerializationType.Element)]
public MaxiCodeParameters MaxiCode { get; }
Giá trị bất động sản
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
PatchCode
Các thông số PatchCode
[XmlSerialization(Type = XmlSerializationType.Element)]
public PatchCodeParameters PatchCode { get; }
Giá trị bất động sản
Pdf417
Các thông số PDF417
[XmlSerialization(Type = XmlSerializationType.Element)]
public Pdf417Parameters Pdf417 { get; }
Giá trị bất động sản
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
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
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
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
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
Exceptions
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; }