com.aspose.barcode

Class BarCodeControl

    • Constructor Detail

      • BarCodeControl

        public BarCodeControl()

        Initializes a new instance of the BarCodeControl class.

      • BarCodeControl

        public BarCodeControl(String codeText)

        Initializes a new instance of the BarCodeControl class.

        Parameters:
        codeText - data to be encoded
      • BarCodeControl

        public BarCodeControl(String codeText,
                      long symbologyType)

        Initializes a new instance of the BarCodeControl class.

        Parameters:
        codeText - data to be encoded
        symbologyType - barcode's type
    • Method Detail

      • setSize

        public void setSize(int width,
                   int height)
        Overrides:
        setSize in class Component
      • getSymbologyType

        public long getSymbologyType()

        BarCode's symbology, type: Aspose.BarCode.SymbologyType see com.aspose.barcode.Symbology supported symbology: 1D: Codabar, Code11, Code128, Code39Standard, Code39Extended Code93Standard, Code93Extended, EAN13, EAN8, Interleaved2of5, MSI, Standard2of5, UPCA, UPCE, EAN14, SCC14, SSCC18, ITF14, SingaporePost 2D: DataMatrix, PDf417

        Specified by:
        getSymbologyType in interface IBarCodeControl
      • setSymbologyType

        public void setSymbologyType(long value)

        BarCode's symbology, type: Aspose.BarCode.SymbologyType see Symbology supported symbology: 1D: Codabar, Code11, Code128, Code39Standard, Code39Extended Code93Standard, Code93Extended, EAN13, EAN8, Interleaved2of5, MSI, Standard2of5, UPCA, UPCE, EAN14, SCC14, SSCC18, ITF14, SingaporePost 2D: DataMatrix, PDf417

        Specified by:
        setSymbologyType in interface IBarCodeControl
      • getCodeTextEncoding

        public Charset getCodeTextEncoding()

        Gets a character encoding.

      • setCodeTextEncoding

        public void setCodeTextEncoding(Charset value)

        Sets a character encoding.

      • getCodeText

        public String getCodeText()

        Data to be encoded, different types of BarCode may have different CodeText length restrictions See EnableEscape. See CodeTextFont. See CodeTextColor. See CodeLocation. See CodeTextSpace. See CodeTextAlignment.


          Create and save a BarCode image
          
                  com.aspose.barcode.BarCodeBuilder b = new BarCodeBuilder();
                  b.setSymbologyType(com.aspose.barcode.Symbology.Codabar;
                  b.setCodeText("12345678");
                  b.save("test.bmp");
                  

        Specified by:
        getCodeText in interface IBarCodeControl
      • setCodeText

        public void setCodeText(String value)

        Data to be encoded, different types of BarCode may have different CodeText length restrictions See EnableEscape. See CodeTextFont. See CodeTextColor. See CodeLocation. See CodeTextSpace. See CodeTextAlignment.


          Create and save a BarCode image
          
                  com.aspose.barcode.BarCodeBuilder b = new BarCodeBuilder();
                  b.setSymbologyType(com.aspose.barcode.Symbology.Codabar;
                  b.setCodeText("12345678");
                  b.save("test.bmp");
                  

        Specified by:
        setCodeText in interface IBarCodeControl
      • getDisplay2DText

        public String getDisplay2DText()

        Gets the text will displayed on the barcode's image. Available only for 2D barcodes. Limited to 1000 chars.

        Value: The text to display.
        Specified by:
        getDisplay2DText in interface IBarCodeControl
      • setDisplay2DText

        public void setDisplay2DText(String value)

        Sets the text will displayed on the barcode's image. Available only for 2D barcodes. Limited to 1000 chars.

        Value: The text to display.
        Specified by:
        setDisplay2DText in interface IBarCodeControl
      • getITF14BorderType

        public int getITF14BorderType()

        Border type of ITF14 barcode, quiet zone will be determined by margin settings.

      • setITF14BorderType

        public void setITF14BorderType(int value)

        Border type of ITF14 barcode, quiet zone will be determined by margin settings.

      • getEnableEscape

        public boolean getEnableEscape()

        Indicates whether explains the character "\" as an escape character in CodeText property. see CodeText <note>If the EnableEscape is true, "\" will be explained as a special escape character. Otherwise, "\" acts as normal characters.</note>


        Aspose.BarCode supports inputing decimal ascii code and mnemonic for ASCII control-code characters, 0 through 31. For example, \013 and \CR stands for CR.

        Specified by:
        getEnableEscape in interface IBarCodeControl
      • setEnableEscape

        public void setEnableEscape(boolean value)

        Indicates whether explains the character "\" as an escape character in CodeText property. see CodeText <note>If the EnableEscape is true, "\" will be explained as a special escape character. Otherwise, "\" acts as normal characters.</note>


        Aspose.BarCode supports inputing decimal ascii code and mnemonic for ASCII control-code characters, 0 through 31. For example, \013 and \CR stands for CR.

        Specified by:
        setEnableEscape in interface IBarCodeControl
      • getCodeTextFont

        public Font getCodeTextFont()

        Specify the displaying CodeText's font

        Specified by:
        getCodeTextFont in interface IBarCodeControl
        Returns:
        CodeTextFont
      • setCodeTextFont

        public void setCodeTextFont(Font value)

        Specify the displaying CodeText's font

        Specified by:
        setCodeTextFont in interface IBarCodeControl
        Parameters:
        value - CodeTextFont
      • setCodeTextColor

        public void setCodeTextColor(Color value)

        Specify the displaying CodeText's Color see System.Drawing.Color

        Specified by:
        setCodeTextColor in interface IBarCodeControl
      • getCodeLocation

        public int getCodeLocation()

        Specify the displaying CodeText's Location, set to CodeLocation.None to hide CodeText. CodeLocation will be ignored if SymbologyType is UPCE, UPCA, ISBN, EAN8 or EAN13 see BarCode.CodeLocation

        Specified by:
        getCodeLocation in interface IBarCodeControl
        See Also:
        CodeLocation
      • setCodeLocation

        public void setCodeLocation(int value)

        Specify the displaying CodeText's Location, set to CodeLocation.None to hide CodeText. CodeLocation will be ignored if SymbologyType is UPCE, UPCA, ISBN, EAN8 or EAN13 see BarCode.CodeLocation

        Specified by:
        setCodeLocation in interface IBarCodeControl
        See Also:
        CodeLocation
      • getCodeTextSpace

        public float getCodeTextSpace()

        Space between the CodeText and the BarCode. Default Graphics Unit: Millimeter see CodeText see CodeLocation see CodeTextFont see CodeTextColor see CodeTextAlignment

        Specified by:
        getCodeTextSpace in interface IBarCodeControl
      • setCodeTextSpace

        public void setCodeTextSpace(float value)

        Space between the CodeText and the BarCode. Default Graphics Unit: Millimeter see CodeText see CodeLocation see CodeTextFont see CodeTextColor see CodeTextAlignment

        Specified by:
        setCodeTextSpace in interface IBarCodeControl
      • getCodeTextAlignment

        public int getCodeTextAlignment()

        Gets or sets the alignment of the code text. see System.Drawing.StringAlignment see see see


        StringAlignment.Near means CodeText will be aligned to the left StringAlignment.Far means CodeText will be aligned to the right StringAlignment.Center means CodeText will be aligned to the center

        Specified by:
        getCodeTextAlignment in interface IBarCodeControl
      • getRotationAngleF

        public float getRotationAngleF()

        BarCode image's rotation angle, measured in degree, e.g. RotationAngleF = 0 or RotationAngleF = 360 means no rotation If RotationAngleF NOT equal to 90, 180, 270 or 0, it may increase the difficulty for the scanner to read the image, please set quality mode to anti-alias

        Specified by:
        getRotationAngleF in interface IBarCodeControl
      • setRotationAngleF

        public void setRotationAngleF(float value)
        Description copied from interface: IBarCodeControl
        BarCode image's rotation angle, measured in degree, e.g. RotationAngleF = 0 or RotationAngleF = 360 means no rotation If RotationAngleF NOT equal to 90, 180, 270 or 0, it may increase the difficulty for the scanner to read the image, please set quality mode to anti-alias
        Specified by:
        setRotationAngleF in interface IBarCodeControl
      • getAutoSize

        public boolean getAutoSize()

        Wether ajust image's size automatically. Recommended:true

        Specified by:
        getAutoSize in interface IBarCodeControl
      • setAutoSize

        public void setAutoSize(boolean value)
        Description copied from interface: IBarCodeControl
        Sets a value indicating whether the image size is to be adjusted automatically. Recommended value is true.
        Specified by:
        setAutoSize in interface IBarCodeControl
      • getImageWidth

        public float getImageWidth()

        BarCode image's width see AutoSize, if AutoSize is true, ImageWidth will be increased accordingly Default Graphics Unit: Millimeter

        Specified by:
        getImageWidth in interface IBarCodeControl
      • getImageHeight

        public float getImageHeight()

        BarCode image's height see AutoSize, if AutoSize is true, Height will be increased accordingly Default Graphics Unit: Millimeter

        Specified by:
        getImageHeight in interface IBarCodeControl
      • setImageHeight

        public void setImageHeight(float value)

        BarCode image's height see AutoSize, if AutoSize is true, Height will be increased accordingly Default Graphics Unit: Millimeter

        Specified by:
        setImageHeight in interface IBarCodeControl
      • getCaptionAbove

        public Caption getCaptionAbove()

        Caption Above the BarCode image. see Caption CaptionAbove contains the following properties: CaptionAbove.Font, CaptionAbove.ForeColor, CaptionAbove.Space, CaptionAbove.Visible, CaptionAbove.Text, CaptionAbove.TextAlign

        Specified by:
        getCaptionAbove in interface IBarCodeControl
      • setCaptionAbove

        public void setCaptionAbove(Caption value)

        Caption Above the BarCode image. see Caption CaptionAbove contains the following properties: CaptionAbove.Font, CaptionAbove.ForeColor, CaptionAbove.Space, CaptionAbove.Visible, CaptionAbove.Text, CaptionAbove.TextAlign

        Specified by:
        setCaptionAbove in interface IBarCodeControl
      • getCaptionBelow

        public Caption getCaptionBelow()

        Caption Below the BarCode image. see Caption CaptionBelow contains the following properties: CaptionBelow.Font, CaptionBelow.ForeColor, CaptionBelow.Space, CaptionBelow.Visible, CaptionBelow.Text, CaptionBelow.TextAlign

        Specified by:
        getCaptionBelow in interface IBarCodeControl
      • setCaptionBelow

        public void setCaptionBelow(Caption value)

        Caption Below the BarCode image. see Caption CaptionBelow contains the following properties: CaptionBelow.Font, CaptionBelow.ForeColor, CaptionBelow.Space, CaptionBelow.Visible, CaptionBelow.Text, CaptionBelow.TextAlign

        Specified by:
        setCaptionBelow in interface IBarCodeControl
      • getGraphicsUnit

        public int getGraphicsUnit()

        Measurement of various properties such as Width, Height etc. Default GraphicsUnit: Millimeter see System.Drawing.GraphicsUnit

        Specified by:
        getGraphicsUnit in interface IBarCodeControl
      • setGraphicsUnit

        public void setGraphicsUnit(int value)

        Measurement of various properties such as Width, Height etc. Default GraphicsUnit: Millimeter see System.Drawing.GraphicsUnit

        Specified by:
        setGraphicsUnit in interface IBarCodeControl
      • getBorderWidth

        public float getBorderWidth()

        BarCode Image's border's width Default Graphics Unit: Millimeter see BorderVisible see see

        Specified by:
        getBorderWidth in interface IBarCodeControl
        See Also:
        BorderDashStyle
      • setBorderWidth

        public void setBorderWidth(float value)

        BarCode Image's border's width Default Graphics Unit: Millimeter see BorderVisible see see

        Specified by:
        setBorderWidth in interface IBarCodeControl
        See Also:
        BorderDashStyle
      • getBorderColor

        public Color getBorderColor()

        BarCode Image's border's color see System.Drawing.Color see BorderWidth see BorderVisible see BorderDashStyle

        Specified by:
        getBorderColor in interface IBarCodeControl
        Returns:
        borderColor
      • setBorderColor

        public void setBorderColor(Color value)

        BarCode Image's border's color see System.Drawing.Color see BorderWidth see BorderVisible see BorderDashStyle

        Specified by:
        setBorderColor in interface IBarCodeControl
      • getBorderDashStyle

        public int getBorderDashStyle()

        BarCode Image's border's style see BarCode.BorderDashStyle see BorderWidth see BorderVisible see BorderColor

        Specified by:
        getBorderDashStyle in interface IBarCodeControl
      • setBorderDashStyle

        public void setBorderDashStyle(int value)

        BarCode Image's border's style see BarCode.BorderDashStyle see BorderWidth see BorderVisible see BorderColor

        Specified by:
        setBorderDashStyle in interface IBarCodeControl
      • getCodabarStartSymbol

        public short getCodabarStartSymbol()

        Start symbol (character) of codabar symbology see CodabarStopSymbol see CodabarSymbol

        Specified by:
        getCodabarStartSymbol in interface IBarCodeControl
      • setCodabarStartSymbol

        public void setCodabarStartSymbol(short value)

        Start symbol (character) of codabar symbology see CodabarStopSymbol see CodabarSymbol

        Specified by:
        setCodabarStartSymbol in interface IBarCodeControl
      • getCodabarStopSymbol

        public short getCodabarStopSymbol()

        Stop symbol (character) of codabar symbology see CodabarStartSymbol see CodabarSymbol

        Specified by:
        getCodabarStopSymbol in interface IBarCodeControl
      • setCodabarStopSymbol

        public void setCodabarStopSymbol(short value)

        Stop symbol (character) of codabar symbology see CodabarStartSymbol see CodabarSymbol

        Specified by:
        setCodabarStopSymbol in interface IBarCodeControl
      • getAustraliaPostFormatControlCode

        public int getAustraliaPostFormatControlCode()

        Australia Post symbology type of barcode's FormatControlCode, default to AustraliaPostFormatControlCode.Standard" See BarCode.AustraliaPostFormatControlCode.

        Specified by:
        getAustraliaPostFormatControlCode in interface IBarCodeControl
      • setAustraliaPostFormatControlCode

        public void setAustraliaPostFormatControlCode(int value)

        Australia Post symbology type of barcode's FormatControlCode, default to AustraliaPostFormatControlCode.Standard" See BarCode.AustraliaPostFormatControlCode.

        Specified by:
        setAustraliaPostFormatControlCode in interface IBarCodeControl
      • getxDimension

        public float getxDimension()

        x-dimension, smallest width unit of BarCode's bars or spaces. increase this will increase the whole barcode image's width if AutoSize is true Default Graphics Unit: Millimeter see yDimension see AutoSize see BarHeight

        Specified by:
        getxDimension in interface IBarCodeControl
      • setxDimension

        public void setxDimension(float value)

        x-dimension, smallest width unit of BarCode's bars or spaces. increase this will increase the whole barcode image's width if AutoSize is true Default Graphics Unit: Millimeter see yDimension see AutoSize see BarHeight

        Specified by:
        setxDimension in interface IBarCodeControl
      • getyDimension

        public float getyDimension()

        y-dimension, smallest height unit of 2D BarCode's modules. Some square symbols (such as DataMatrix) may ignore this and use x-dimension for both width unit and height unit In 2D barcode, y-dimension * rows determines BarCode's height In 1D barcode, BarHeight determines BarCode's height. Default Graphics Unit: Millimeter see xDimension see BarHeight

        Specified by:
        getyDimension in interface IBarCodeControl
      • setyDimension

        public void setyDimension(float value)

        y-dimension, smallest height unit of 2D BarCode's modules. Some square symbols (such as DataMatrix) may ignore this and use x-dimension for both width unit and height unit In 2D barcode, y-dimension * rows determines BarCode's height In 1D barcode, BarHeight determines BarCode's height. Default Graphics Unit: Millimeter see xDimension see BarHeight

        Specified by:
        setyDimension in interface IBarCodeControl
      • getBarHeight

        public float getBarHeight()

        height of 1D barcodes' bars. In 2D barcode, y-dimension * rows determines BarCode's height In 1D barcode, BarHeight determines BarCode's height. Default Graphics Unit: Millimeter see yDimension

        Specified by:
        getBarHeight in interface IBarCodeControl
      • setBarHeight

        public void setBarHeight(float value)

        height of 1D barcodes' bars. In 2D barcode, y-dimension * rows determines BarCode's height In 1D barcode, BarHeight determines BarCode's height. Default Graphics Unit: Millimeter see yDimension

        Specified by:
        setBarHeight in interface IBarCodeControl
      • getForeColor

        public Color getForeColor()

        Foreground color of the barcode image, that is, Bar's color of 1D barcode, Module's color of 2D barcode see System.Drawing.Color

        Specified by:
        getForeColor in interface IBarCodeControl
      • setForeColor

        public void setForeColor(Color value)

        Foreground color of the barcode image, that is, Bar's color of 1D barcode, Module's color of 2D barcode see System.Drawing.Color

        Specified by:
        setForeColor in interface IBarCodeControl
      • getBackColor

        public Color getBackColor()

        Background color of the barcode image see System.Drawing.Color

        Specified by:
        getBackColor in interface IBarCodeControl
      • setBackColor

        public void setBackColor(Color value)

        Background color of the barcode image see System.Drawing.Color

        Specified by:
        setBackColor in interface IBarCodeControl
      • getEnableChecksum

        public int getEnableChecksum()

        Enable checksum during generation for 1D barcodes.

        Default is treated as Yes for symbologies which must contain checksum, as No where checksum only possible.

        Checksum never used: Codabar

        Checksum is possible: Code39 Standard/Extended, Standard2of5, Interleaved2of5, Matrix2of5, ItalianPost25, DeutschePostIdentcode, DeutschePostLeitcode, VIN

        Checksum always used: Rest symbologies

        Specified by:
        getEnableChecksum in interface IBarCodeControl
      • setEnableChecksum

        public void setEnableChecksum(int value)

        Enable checksum during generation for 1D barcodes.

        Default is treated as Yes for symbologies which must contain checksum, as No where checksum only possible.

        Checksum never used: Codabar

        Checksum is possible: Code39 Standard/Extended, Standard2of5, Interleaved2of5, Matrix2of5, ItalianPost25, DeutschePostIdentcode, DeutschePostLeitcode, VIN

        Checksum always used: Rest symbologies

        Specified by:
        setEnableChecksum in interface IBarCodeControl
      • getAspectRatio

        public float getAspectRatio()

        2D BarCode's module's height/width ratio (yDimension/xDimension). calculated based on xDimension set to 0 means not using this feature. see xDimension see yDimension


        Some 2D BarCodes are square shaped, then AspectRatio is not appliable

        Specified by:
        getAspectRatio in interface IBarCodeControl
      • setAspectRatio

        public void setAspectRatio(float value)

        2D BarCode's module's height/width ratio (yDimension/xDimension). calculated based on xDimension set to 0 means not using this feature. see xDimension see yDimension


        Some 2D BarCodes are square shaped, then AspectRatio is not appliable

        Specified by:
        setAspectRatio in interface IBarCodeControl
      • getColumns

        public int getColumns()

        2D BarCode's columns, if setting is illegal then columns will be calculated automatically appliable SymbologyType: Pdf417

        Specified by:
        getColumns in interface IBarCodeControl
      • setColumns

        public void setColumns(int value)

        2D BarCode's columns, if setting is illegal then columns will be calculated automatically appliable SymbologyType: Pdf417

        Specified by:
        setColumns in interface IBarCodeControl
      • getRows

        public int getRows()

        2D BarCode's rows, if setting is illegal then rows will be calculated automatically appliable SymbologyType: Pdf417

      • setRows

        public void setRows(int value)

        2D BarCode's rows, if setting is illegal then rows will be calculated automatically appliable SymbologyType: Pdf417

      • getDataMatrixEncodeMode

        public int getDataMatrixEncodeMode()

        Encode mode of Datamatrix barcode, default to Auto see BarCode.DataMatrixEncodeModeDataMatrixEncodeMode .

      • setDataMatrixEncodeMode

        public void setDataMatrixEncodeMode(int value)

        Encode mode of Datamatrix barcode, default to Auto see BarCode.DataMatrixEncodeModeDataMatrixEncodeMode .

      • getPdf417CompactionMode

        public int getPdf417CompactionMode()

        Pdf417 symbology type of BarCode's compaction mode, default compaction mode is <bode>Auto</bode> see BarCode.Pdf417CompactionMode

        Specified by:
        getPdf417CompactionMode in interface IBarCodeControl
      • setPdf417CompactionMode

        public void setPdf417CompactionMode(int value)

        Pdf417 symbology type of BarCode's compaction mode, default compaction mode is <bode>Auto</bode> see BarCode.Pdf417CompactionMode

        Specified by:
        setPdf417CompactionMode in interface IBarCodeControl
      • getPdf417Truncate

        public boolean getPdf417Truncate()

        whether pdf417 symbology type of BarCode is truncated (to reduce space)

        Specified by:
        getPdf417Truncate in interface IBarCodeControl
      • setPdf417Truncate

        public void setPdf417Truncate(boolean value)

        whether pdf417 symbology type of BarCode is truncated (to reduce space)

        Specified by:
        setPdf417Truncate in interface IBarCodeControl
      • getPdf417ErrorLevel

        public int getPdf417ErrorLevel()

        Gets Pdf417 symbology type of BarCode's error coccrection level ranging from level0 to level9, level0 means no error correction info, level9 means best error correction which means a larger picture

        Specified by:
        getPdf417ErrorLevel in interface IBarCodeControl
      • setPdf417ErrorLevel

        public void setPdf417ErrorLevel(int value)

        Sets Pdf417 symbology type of BarCode's error coccrection level ranging from level0 to level9, level0 means no error correction info, level9 means best error correction which means a larger picture

        Specified by:
        setPdf417ErrorLevel in interface IBarCodeControl
      • getMacroPdf417SegmentsCount

        public int getMacroPdf417SegmentsCount()

        Gets macro pdf417 barcode segments count.

      • setMacroPdf417SegmentsCount

        public void setMacroPdf417SegmentsCount(int value)

        Sets macro pdf417 barcode segments count.

      • getMacroPdf417SegmentID

        public int getMacroPdf417SegmentID()

        Gets macro pdf417 barcode's segment ID, which starts from 0, to MacroPdf417SegmentCount - 1.

      • setMacroPdf417SegmentID

        public void setMacroPdf417SegmentID(int value)

        Sets macro pdf417 barcode's segment ID, which starts from 0, to MacroPdf417SegmentCount - 1.

      • getMacroPdf417FileID

        public int getMacroPdf417FileID()

        Gets macro pdf417 barcode's file ID.

      • setMacroPdf417FileID

        public void setMacroPdf417FileID(int value)

        Sets macro pdf417 barcode's file ID.

      • getWideNarrowRatio

        public float getWideNarrowRatio()

        Wide bars to Narrow bars ratio for some 1D BarCode. Default WideNarrowRatio:3, that is, wide bars are 3 times as wide as narrow bars Appliable symbology: Code39Extended, Code39Standard, Standard2of5, Interleaved2of5 see Symbology

        Specified by:
        getWideNarrowRatio in interface IBarCodeControl
      • setWideNarrowRatio

        public void setWideNarrowRatio(float value)

        Wide bars to Narrow bars ratio for some 1D BarCode. Default WideNarrowRatio:3, that is, wide bars are 3 times as wide as narrow bars Appliable symbology: Code39Extended, Code39Standard, Standard2of5, Interleaved2of5 see Symbology

        Specified by:
        setWideNarrowRatio in interface IBarCodeControl
      • getMargins

        public MarginsF getMargins()

        Margin area around the core BarCode image If AutoSize is false, then Width and Height is fixed, thus Margins setting will be ignored Default Graphics Unit: Millimeter

        Specified by:
        getMargins in interface IBarCodeControl
      • setMargins

        public void setMargins(MarginsF value)

        Margin area around the core BarCode image If AutoSize is false, then Width and Height is fixed, thus Margins setting will be ignored Default Graphics Unit: Millimeter

      • getSupplementData

        public String getSupplementData()

        Supplement data following BarCodes of symbology UPCA, UPCE, EAN13, EAN8, ISBN, Interleaved2of5 or Standard2of5. see Symbology see SupplementSpace

        Specified by:
        getSupplementData in interface IBarCodeControl
      • setSupplementData

        public void setSupplementData(String value)

        Supplement data following BarCodes of symbology UPCA, UPCE, EAN13, EAN8, ISBN, Interleaved2of5 or Standard2of5. see Symbology see SupplementSpace

        Specified by:
        setSupplementData in interface IBarCodeControl
      • getSupplementSpace

        public float getSupplementSpace()

        Space between main the BarCode and supplement BarCode, default Graphics Unit: millimeter see System.Drawing.GraphicsUnit see SupplementData

        Specified by:
        getSupplementSpace in interface IBarCodeControl
      • setSupplementSpace

        public void setSupplementSpace(float value)

        Space between main the BarCode and supplement BarCode, default Graphics Unit: millimeter see System.Drawing.GraphicsUnit see SupplementData

        Specified by:
        setSupplementSpace in interface IBarCodeControl
      • getPrinterName

        public String getPrinterName()

        Choose printer, if not specified, Print() method will choose the first available printer

      • setPrinterName

        public void setPrinterName(String value)

        Choose printer, if not specified, Print() method will choose the first available printer

      • getImageQuality

        public int getImageQuality()

        Graphics quality mode, when RotationAngleF not equal to 0, 90, 180 or 270, do set quality mode to anti-alias. Type: Aspose.BarCode.ImageQualityMode see ImageQualityMode

        Specified by:
        getImageQuality in interface IBarCodeControl
      • setImageQuality

        public void setImageQuality(int value)

        Graphics quality mode, when RotationAngleF not equal to 0, 90, 180 or 270, do set quality mode to anti-alias. Type: Aspose.BarCode.ImageQualityMode see ImageQualityMode

        Specified by:
        setImageQuality in interface IBarCodeControl
      • setTextRenderingHint

        public void setTextRenderingHint(int value)

        Specifies the quality of text rendering.

        Specified by:
        setTextRenderingHint in interface IBarCodeControl
      • getQRErrorLevel

        public int getQRErrorLevel()

        Level of Reed-Solomon error correction for QR barcode. From low to high: LevelL, LevelM, LevelQ, LevelH. see BarCode.QRErrorLevelQRErrorLevel.

      • setQRErrorLevel

        public void setQRErrorLevel(int value)

        Level of Reed-Solomon error correction for QR barcode. From low to high: LevelL, LevelM, LevelQ, LevelH. see BarCode.QRErrorLevelQRErrorLevel.

      • getQREncodeMode

        public int getQREncodeMode()

        QR symbology type of BarCode's encoding mode, default mode is <bode>Auto</bode>

      • setQREncodeMode

        public void setQREncodeMode(int value)

        QR symbology type of BarCode's encoding mode, default mode is <bode>Auto</bode>

      • rotate

        public void rotate()

        Rotate barcode image clockwise for 90 degrees

        Specified by:
        rotate in interface IBarCodeControl
      • rotate

        public void rotate(float angle)

        Rotate barcode image clockwise

        Specified by:
        rotate in interface IBarCodeControl
        Parameters:
        angle - Rotation Angle
      • rotate

        public void rotate(int direction,
                  float angle)

        Rotate the barcode image

        Specified by:
        rotate in interface IBarCodeControl
        Parameters:
        direction - rotation direction
        angle - rotation angle
      • save

        public void save(String filename)

        Save BarCodeImage to specific file in specific format

        Specified by:
        save in interface IBarCodeControl
        Parameters:
        filename - save to this file path
      • save

        public void save(OutputStream stream,
                int format)
                  throws IOException

        Save BarCodeImage to specific file in specific format

        Specified by:
        save in interface IBarCodeControl
        Parameters:
        stream - System.IO.Stream
        format - System.Drawing.Imaging.ImageFormat
        Throws:
        IOException
      • save

        public void save(String filename,
                com.aspose.barcode.ImageFormat format)
                  throws IOException

        Save BarCodeImage to specific file in specific format

        Specified by:
        save in interface IBarCodeControl
        Parameters:
        filename - save to this file path
        format - System.Drawing.Imaging.ImageFormat
        Throws:
        IOException
      • save

        public void save(String filename,
                int format)
                  throws IOException

        Save BarCodeImage to specific file in specific format

        Specified by:
        save in interface IBarCodeControl
        Parameters:
        filename - save to this file path
        format - System.Drawing.Imaging.ImageFormat
        Throws:
        IOException
      • getPostnetShortBarHeight

        public float getPostnetShortBarHeight()

        Short bar's height of Postnet barcode, it has to be between 1 millimeter and 1.5 milimeter (0.04 inch and 0.06 inch). To set up tall bar's height, see BarHeight, which has to be between 8.28 milimeter and 9.72 milimeter (0.115 inch and 0.135 inch) see changing see System.Drawing.GraphicsUnitGraphicsUnit. see setting tall bar's height: see BarHeightBarHeight.

        Specified by:
        getPostnetShortBarHeight in interface IBarCodeControl
      • setPostnetShortBarHeight

        public void setPostnetShortBarHeight(float value)

        Short bar's height of Postnet barcode, it has to be between 1 millimeter and 1.5 milimeter (0.04 inch and 0.06 inch). To set up tall bar's height, see BarHeight, which has to be between 8.28 milimeter and 9.72 milimeter (0.115 inch and 0.135 inch) see changing see System.Drawing.GraphicsUnitGraphicsUnit. see setting tall bar's height: see BarHeightBarHeight.

        Specified by:
        setPostnetShortBarHeight in interface IBarCodeControl
      • getPlanetShortBarHeight

        public float getPlanetShortBarHeight()

        Short bar's height of Planet barcode, it has to be between 1 millimeter and 1.5 milimeters. see changing see System.Drawing.GraphicsUnitGraphicsUnit. see setting tall bar's height: see BarHeightBarHeight.

        Specified by:
        getPlanetShortBarHeight in interface IBarCodeControl
      • setPlanetShortBarHeight

        public void setPlanetShortBarHeight(float value)

        Short bar's height of Planet barcode, it has to be between 1 millimeter and 1.5 milimeters. see changing see System.Drawing.GraphicsUnitGraphicsUnit. see setting tall bar's height: see BarHeightBarHeight.

        Specified by:
        setPlanetShortBarHeight in interface IBarCodeControl
      • getAztectErrorLevel

        public int getAztectErrorLevel()

        Level of error corection of Aztect types of barcode. value should between 10 to 95

      • setAztectErrorLevel

        public void setAztectErrorLevel(int value)

        Level of error corection of Aztect types of barcode. value should between 10 to 95

      • toString

        public String toString()

        overried to string method

        Overrides:
        toString in class Component
        Returns:
        BarCode: SymbologyType: CodeText