Lines Matching refs:width
52 (int) (rect.width * scaleFactor), in scaleRectangle()
63 public static BufferedImage newArgbBufferedImage(int width, int height) { in newArgbBufferedImage() argument
64 return new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB); in newArgbBufferedImage()
76 public static BufferedImage scaledImage(BufferedImage source, int width, int height) { in scaledImage() argument
77 Image scaledImage = source.getScaledInstance(width, height, Image.SCALE_SMOOTH); in scaledImage()
78 BufferedImage scaledBufImage = new BufferedImage(width, height, in scaledImage()
280 BufferedImage out = newArgbBufferedImage(imageRect.width, imageRect.height); in drawEffects()
290 g2.fillRect(0, 0, imageRect.width, imageRect.height); in drawEffects()
300 imageRect.width, imageRect.height); in drawEffects()
327 if (srcWidth * 1.0 / srcHeight > dstRect.width * 1.0 / dstRect.height) { in drawCenterInside()
328 final int scaledWidth = Math.max(1, dstRect.width); in drawCenterInside()
329 final int scaledHeight = Math.max(1, dstRect.width * srcHeight / srcWidth); in drawCenterInside()
334 dstRect.x + dstRect.width, in drawCenterInside()
346 dstRect.x + (dstRect.width - scaledWidth) / 2, in drawCenterInside()
348 dstRect.x + (dstRect.width - scaledWidth) / 2 + scaledWidth, in drawCenterInside()
370 if (srcWidth * 1.0 / srcHeight > dstRect.width * 1.0 / dstRect.height) { in drawCenterCrop()
377 dstRect.x + dstRect.width, in drawCenterCrop()
379 0 + (scaledWidth - dstRect.width) / 2, in drawCenterCrop()
381 0 + (scaledWidth - dstRect.width) / 2 + dstRect.width, in drawCenterCrop()
385 final int scaledWidth = dstRect.width; in drawCenterCrop()
386 final int scaledHeight = dstRect.width * srcHeight / srcWidth; in drawCenterCrop()
391 dstRect.x + dstRect.width, in drawCenterCrop()
395 0 + dstRect.width, in drawCenterCrop()