public void decodeFlipped ( ByteBuffer buffer , int stride , Format fmt ) throws IOException { if ( stride <= 0 ) { throw new IllegalArgumentException ( "stride" ) ; } int pos = buffer . position ( ) ; int posDelta = ( height - 1 ) * stride ; buffer . position ( pos + posDelta ) ; decode ( buffer , - stride , fmt ) ; buffer . position ( buffer . position ( ) + posDelta ) ; }
Decodes the image into the specified buffer . The last line is placed at the current position . After decode the buffer position is at the end of the first line .