Lines Matching defs:iconWidth
31 * Builds an icon with the dimensions iconWidth:iconHeight. If scale is set
36 * @param iconWidth width of the icon bitmap.
39 * @return an icon bitmap with the dimensions iconWidth:iconHeight.
41 public static Bitmap createIcon(Bitmap sourceImage, int iconWidth, int iconHeight,
50 if (sourceWidth == 0 || sourceHeight == 0 || iconWidth == 0 || iconHeight == 0) {
54 Bitmap icon = Bitmap.createBitmap(iconWidth, iconHeight,
76 int iconWidth = dest.getWidth();
79 if (sourceWidth == 0 || sourceHeight == 0 || iconWidth == 0 || iconHeight == 0) {
83 Rect destRect = new Rect(0, 0, iconWidth, iconHeight);
91 // crop image to aspect ratio iconWidth:iconHeight
92 float wScale = sourceWidth / (float) iconWidth;
96 float iw = iconWidth * s;