private long getPixelNumber ( long fileOffset ) { assert fileOffset >= 0 ; long result = Math . round ( fileOffset / bytesPerPixel ( ) ) ; assert result >= 0 ; return result ; }
convert fileOffset to square pixels