com.aspose.barcode

Interface IBarCodeControl

    • Method Detail

      • getEncodeType

        BaseEncodeType getEncodeType()
        BarCode's encode type (symbology).
        Returns:
        returns BarCode's encode type
      • setEncodeType

        void setEncodeType(BaseEncodeType value)
        BarCode's encode type (symbology).
        Parameters:
        value -
      • getImageWidth

        float getImageWidth()
        BarCode image's width.
      • setImageWidth

        void setImageWidth(float value)
        BarCode image's width.
      • getImageHeight

        float getImageHeight()
        BarCode image's height.
      • setImageHeight

        void setImageHeight(float value)
        BarCode image's height.
      • getBarCodeImage

        java.awt.image.BufferedImage getBarCodeImage()
        Get the BarCode image under current settings.
      • getxDimension

        float getxDimension()
        x-dimension, smallest width unit of BarCode's bars or spaces.
      • setxDimension

        void setxDimension(float value)
        x-dimension, smallest width unit of BarCode's bars or spaces.
      • getyDimension

        float getyDimension()
        y-dimension
      • setyDimension

        void setyDimension(float value)
        y-dimension
      • getBackColor

        java.awt.Color getBackColor()
        Background color of the barcode image.
      • setBackColor

        void setBackColor(java.awt.Color value)
        Background color of the barcode image.
      • getForeColor

        java.awt.Color getForeColor()
        Foreground color of the barcode image, that is, Bar's color of 1D barcode, Module's color of 2D barcode.
      • setForeColor

        void setForeColor(java.awt.Color value)
        Foreground color of the barcode image, that is, Bar's color of 1D barcode, Module's color of 2D barcode.
      • getAutoSize

        boolean getAutoSize()
        Gets a value indicating whether the image size is to be adjusted automatically. Recommended value is true.
      • setAutoSize

        void setAutoSize(boolean value)
        Sets a value indicating whether the image size is to be adjusted automatically. Recommended value is true.
      • getRotationAngleF

        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
      • setRotationAngleF

        void setRotationAngleF(float value)
        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
      • getGraphicsUnit

        int getGraphicsUnit()
        Measurement of various properties such as width, height etc. Default GraphicsUnit: Millimeter See .
      • setGraphicsUnit

        void setGraphicsUnit(int value)
        Measurement of various properties such as width, height etc. Default GraphicsUnit: Millimeter See .
      • getBorderVisible

        boolean getBorderVisible()
        BorderVisible
      • setBorderVisible

        void setBorderVisible(boolean value)
        BorderVisible
      • getBorderDashStyle

        int getBorderDashStyle()
        BorderDashStyle
      • setBorderDashStyle

        void setBorderDashStyle(int value)
        BorderDashStyle
      • getBorderWidth

        float getBorderWidth()
        BorderWidth
      • setBorderWidth

        void setBorderWidth(float value)
        BorderWidth
      • getBorderColor

        java.awt.Color getBorderColor()
        Gets BorderColor
        Returns:
        borderColor
      • setBorderColor

        void setBorderColor(java.awt.Color value)
        Sets BorderColor
      • getCaptionAbove

        Caption getCaptionAbove()
        CaptionAbove
      • setCaptionAbove

        void setCaptionAbove(Caption value)
        CaptionAbove
      • getCaptionBelow

        Caption getCaptionBelow()
        CaptionBelow
      • setCaptionBelow

        void setCaptionBelow(Caption value)
        CaptionBelow
      • getMargins

        MarginsF getMargins()
        Margin area around the core BarCode image.
      • getResolution

        Resolution getResolution()
        Resolution
      • setResolution

        void setResolution(Resolution value)
        Resolution
      • getCodeText

        java.lang.String getCodeText()
        Data to be encoded, different types of BarCode may have different CodeText length restrictions.
      • setCodeText

        void setCodeText(java.lang.String value)
        Data to be encoded, different types of BarCode may have different CodeText length restrictions.
      • getDisplay2DText

        java.lang.String getDisplay2DText()
        Display2DText
      • setDisplay2DText

        void setDisplay2DText(java.lang.String value)
        Display2DText
      • getPdf417Truncate

        boolean getPdf417Truncate()
        Pdf417Truncate
      • setPdf417Truncate

        void setPdf417Truncate(boolean value)
        Pdf417Truncate
      • getPdf417ErrorLevel

        int getPdf417ErrorLevel()
        Pdf417ErrorLevel
      • setPdf417ErrorLevel

        void setPdf417ErrorLevel(int value)
        Pdf417ErrorLevel
      • getPdf417CompactionMode

        int getPdf417CompactionMode()
        Pdf417CompactionMode
      • setPdf417CompactionMode

        void setPdf417CompactionMode(int value)
        Pdf417CompactionMode
      • getAspectRatio

        float getAspectRatio()
        AspectRatio
      • setAspectRatio

        void setAspectRatio(float value)
        AspectRatio
      • getColumns

        int getColumns()
        2D BarCode's columns, if setting is illegal then columns will be calculated automatically appliable SymbologyType: Pdf417
      • setColumns

        void setColumns(int value)
        2D BarCode's columns, if setting is illegal then columns will be calculated automatically appliable SymbologyType: Pdf417
      • getEnableEscape

        boolean getEnableEscape()
        EnableEscape
      • setEnableEscape

        void setEnableEscape(boolean value)
        EnableEscape
      • getEnableChecksum

        int getEnableChecksum()
        EnableChecksum
      • setEnableChecksum

        void setEnableChecksum(int value)
        EnableChecksum
      • getCustomerInformationInterpretingType

        int getCustomerInformationInterpretingType()
        CustomerInformationInterpretingType
      • setCustomerInformationInterpretingType

        void setCustomerInformationInterpretingType(int value)
        CustomerInformationInterpretingType
      • getBarHeight

        float getBarHeight()
        height of 1D barcodes' bars.
      • setBarHeight

        void setBarHeight(float value)
        height of 1D barcodes' bars.
      • getWideNarrowRatio

        float getWideNarrowRatio()
        WideNarrowRatio
      • setWideNarrowRatio

        void setWideNarrowRatio(float value)
        WideNarrowRatio
      • getCodeTextColor

        java.awt.Color getCodeTextColor()
        CodeTextColor
      • setCodeTextColor

        void setCodeTextColor(java.awt.Color value)
        CodeTextColor
      • getCodeLocation

        int getCodeLocation()
        CodeLocation
      • setCodeLocation

        void setCodeLocation(int value)
        CodeLocation
      • getCodeTextAlignment

        int getCodeTextAlignment()
        CodeTextAlignment
      • setCodeTextAlignment

        void setCodeTextAlignment(int value)
        CodeTextAlignment
      • getCodeTextSpace

        float getCodeTextSpace()
        CodeTextSpace
      • setCodeTextSpace

        void setCodeTextSpace(float value)
        CodeTextSpace
      • getCodabarStartSymbol

        short getCodabarStartSymbol()
        CodabarStartSymbol
      • setCodabarStartSymbol

        void setCodabarStartSymbol(short value)
        CodabarStartSymbol
      • getCodabarStopSymbol

        short getCodabarStopSymbol()
        CodabarStopSymbol
      • setCodabarStopSymbol

        void setCodabarStopSymbol(short value)
        CodabarStopSymbol
      • getCodeTextFont

        java.awt.Font getCodeTextFont()
        Gets CodeTextFont
        Returns:
        CodeTextFont
      • setCodeTextFont

        void setCodeTextFont(java.awt.Font value)
        Sets CodeTextFont
        Parameters:
        value - CodeTextFont
      • getSupplementData

        java.lang.String getSupplementData()
        SupplementData
      • setSupplementData

        void setSupplementData(java.lang.String value)
        SupplementData
      • getSupplementSpace

        float getSupplementSpace()
        SUPPLEMENT_SPACE
      • setSupplementSpace

        void setSupplementSpace(float value)
        SUPPLEMENT_SPACE
      • getImageQuality

        int getImageQuality()
        ImageQuality
      • setImageQuality

        void setImageQuality(int value)
        ImageQuality
      • getTextRenderingHint

        int getTextRenderingHint()
        TextRenderingHint
      • setTextRenderingHint

        void setTextRenderingHint(int value)
        TextRenderingHint
      • getPostnetShortBarHeight

        float getPostnetShortBarHeight()
        POSTNET_SHORT_BAR_HEIGHT
      • setPostnetShortBarHeight

        void setPostnetShortBarHeight(float value)
        POSTNET_SHORT_BAR_HEIGHT
      • getPlanetShortBarHeight

        float getPlanetShortBarHeight()
        PLANET_SHORT_BAR_HEIGHT
      • setPlanetShortBarHeight

        void setPlanetShortBarHeight(float value)
        PLANET_SHORT_BAR_HEIGHT
      • rotate

        void rotate()
        Rotate barcode image clockwise for 90 degrees
      • rotate

        void rotate(float angle)
        Rotate barcode image clockwise
        Parameters:
        angle - Rotation Angle
      • rotate

        void rotate(int direction,
                  float angle)
        Rotate the barcode image
        Parameters:
        direction - rotation direction
        angle - rotation angle
      • save

        void save(java.lang.String filename)
        Save BarCodeImage to specific file in specific format
        Parameters:
        filename - save to this file path
      • save

        void save(java.lang.String filename,
                com.aspose.barcode.ImageFormat format)
                  throws java.io.IOException
        Save BarCodeImage to specific file in specific format
        Parameters:
        filename - Save to this file path
        format - The specific format
        Throws:
        java.io.IOException
      • save

        void save(java.io.OutputStream stream,
                int format)
                  throws java.io.IOException
        Throws:
        java.io.IOException
      • save

        void save(java.lang.String filename,
                int format)
                  throws java.io.IOException
        Save BarCodeImage to specific file in specific format
        Parameters:
        filename - save to this file path
        format - The specific format
        Throws:
        java.io.IOException