C# 클래스 ApiExamples.CustomBarcodeGenerator

Sample of custom barcode generator implementation (with underlying Aspose.BarCode module)
상속: IBarcodeGenerator
파일 보기 프로젝트 열기: aspose-words/Aspose.Words-for-.NET

공개 메소드들

메소드 설명
CastDoubleToInt ( double value ) : int

Casts a double to int32 in a way that uint32 are "correctly" casted too (they become negative numbers).

GetBarcodeImage ( BarcodeParameters parameters ) : Image

Implementation of the GetBarcodeImage() method for IBarCodeGenerator interface.

GetOldBarcodeImage ( BarcodeParameters parameters ) : Image

Implementation of the GetOldBarcodeImage() method for IBarCodeGenerator interface.

TryParseHex ( string s ) : int

Try parses a hex string into an integer value. on error return int.MinValue

TryParseInt ( string s ) : int

Parses an integer using the invariant culture. Returns Int.MinValue if cannot parse. Allows leading sign. Allows leading and trailing spaces.

비공개 메소드들

메소드 설명
ConvertBarcodeType ( string inputCode ) : Symbology

Converts barcode type from Word to Aspose.BarCode.

ConvertColor ( string inputColor ) : Color

Converts barcode image color from Word to Aspose.BarCode.

ConvertScalingFactor ( string scalingFactor ) : float

Converts bar code scaling factor from percents to float.

ConvertSymbolHeight ( string heightInTwipsString ) : float

Converts barcode image height from Word units to Aspose.BarCode units.

메소드 상세

CastDoubleToInt() 공개 정적인 메소드

Casts a double to int32 in a way that uint32 are "correctly" casted too (they become negative numbers).
public static CastDoubleToInt ( double value ) : int
value double
리턴 int

GetBarcodeImage() 공개 메소드

Implementation of the GetBarcodeImage() method for IBarCodeGenerator interface.
public GetBarcodeImage ( BarcodeParameters parameters ) : Image
parameters BarcodeParameters
리턴 Image

GetOldBarcodeImage() 공개 메소드

Implementation of the GetOldBarcodeImage() method for IBarCodeGenerator interface.
public GetOldBarcodeImage ( BarcodeParameters parameters ) : Image
parameters BarcodeParameters
리턴 Image

TryParseHex() 공개 정적인 메소드

Try parses a hex string into an integer value. on error return int.MinValue
public static TryParseHex ( string s ) : int
s string
리턴 int

TryParseInt() 공개 정적인 메소드

Parses an integer using the invariant culture. Returns Int.MinValue if cannot parse. Allows leading sign. Allows leading and trailing spaces.
public static TryParseInt ( string s ) : int
s string
리턴 int