Home | History | Annotate | Download | only in assetstudiolib

Lines Matching defs:srcWidth

209         final int srcWidth = source.getWidth();
212 int l = srcWidth, t = srcHeight, r = 0, b = 0;
217 for (x = 0; x < srcWidth; x++) {
329 final int srcWidth = source.getWidth();
331 if (srcWidth * 1.0 / srcHeight > dstRect.width * 1.0 / dstRect.height) {
333 final int scaledHeight = Math.max(1, dstRect.width * srcHeight / srcWidth);
346 final int scaledWidth = Math.max(1, dstRect.height * srcWidth / srcHeight);
372 final int srcWidth = source.getWidth();
374 if (srcWidth * 1.0 / srcHeight > dstRect.width * 1.0 / dstRect.height) {
375 final int scaledWidth = dstRect.height * srcWidth / srcHeight;
390 final int scaledHeight = dstRect.width * srcHeight / srcWidth;