/** * Determine the y source pixel location * * @param y * y pixel * @param destTop * destination top most pixel * @param srcTop * source top most pixel * @param heightRatio * source over destination height ratio * @return y source pixel */ protected float getYSource(int y, float destTop, float srcTop, float heightRatio) { float dest = getYEncodedLocation(y, encoding); float source = getSource(dest, destTop, srcTop, heightRatio); return source; }
/** * Determine the x source pixel location * * @param x * x pixel * @param destLeft * destination left most pixel * @param srcLeft * source left most pixel * @param widthRatio * source over destination width ratio * @return x source pixel */ protected float getXSource(int x, float destLeft, float srcLeft, float widthRatio) { float dest = getXEncodedLocation(x, encoding); float source = getSource(dest, destLeft, srcLeft, widthRatio); return source; }