Home | History | Annotate | Download | only in tools

Lines Matching defs:iconHeight

31      * Builds an icon with the dimensions iconWidth:iconHeight. If scale is set
37 * @param iconHeight height 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,
77 int iconHeight = dest.getHeight();
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
93 float hScale = sourceHeight / (float) iconHeight;
97 float ih = iconHeight * s;