Class ImageLineSetBI

  • All Implemented Interfaces:
    ar.com.hjg.pngj.IImageLineSet<ImageLineBI>

    public class ImageLineSetBI
    extends Object
    implements ar.com.hjg.pngj.IImageLineSet<ImageLineBI>
    • Method Detail

      • isForWritePng

        public boolean isForWritePng()
        is this for write PNG or for write BufferredImage?
      • getImageLine

        public ImageLineBI getImageLine​(int row)
        The row number here referers to the PNG, not the BI See getImageLineRawNum(int)
        Specified by:
        getImageLine in interface ar.com.hjg.pngj.IImageLineSet<ImageLineBI>
      • getImageLineRawNum

        public ar.com.hjg.pngj.IImageLine getImageLineRawNum​(int n)
        The row number here is that of the BufferedImage
      • hasImageLine

        public boolean hasImageLine​(int n)
        Specified by:
        hasImageLine in interface ar.com.hjg.pngj.IImageLineSet<ImageLineBI>
      • size

        public int size()
        Specified by:
        size in interface ar.com.hjg.pngj.IImageLineSet<ImageLineBI>
      • imageRowToMatrixRowStrict

        public int imageRowToMatrixRowStrict​(int imrow)
        Same as imageRowToMatrixRow(int), but returns negative if invalid
      • matrixRowToImageRow

        public int matrixRowToImageRow​(int mrow)
        Converts from matrix row number (0 : nRows-1) to image row number
        Parameters:
        mrow - Matrix row number
        Returns:
        Image row number. Returns trash if mrow is invalid
      • imageRowToMatrixRow

        public int imageRowToMatrixRow​(int imrow)
        Converts from real image row to this object row number.

        Warning: this always returns a valid matrix row (clamping on 0 : nrows-1, and rounding down)

        Eg: rowOffset=4,rowStep=2 imageRowToMatrixRow(17) returns 6 , imageRowToMatrixRow(1) returns 0