Home | History | Annotate | Download | only in assetstudiolib

Lines Matching full:srcwidth

209         final int srcWidth = source.getWidth();
212 int l = srcWidth, t = srcHeight, r = 0, b = 0;
217 for (x = 0; x < srcWidth; x++) {
325 final int srcWidth = source.getWidth();
327 if (srcWidth * 1.0 / srcHeight > dstRect.width * 1.0 / dstRect.height) {
329 final int scaledHeight = Math.max(1, dstRect.width * srcHeight / srcWidth);
342 final int scaledWidth = Math.max(1, dstRect.height * srcWidth / srcHeight);
368 final int srcWidth = source.getWidth();
370 if (srcWidth * 1.0 / srcHeight > dstRect.width * 1.0 / dstRect.height) {
371 final int scaledWidth = dstRect.height * srcWidth / srcHeight;
386 final int scaledHeight = dstRect.width * srcHeight / srcWidth;