Searched refs:sourceHeight (Results 1 – 2 of 2) sorted by relevance
75 int sourceHeight = icon.getHeight(); in createIconBitmap() local76 if (sourceWidth > textureWidth && sourceHeight > textureHeight) { in createIconBitmap()80 (sourceHeight - textureHeight) / 2, in createIconBitmap()82 } else if (sourceWidth == textureWidth && sourceHeight == textureHeight) { in createIconBitmap()117 int sourceHeight = icon.getIntrinsicHeight(); in createIconBitmap() local118 if (sourceWidth > 0 && sourceHeight > 0) { in createIconBitmap()120 if (width < sourceWidth || height < sourceHeight) { in createIconBitmap()122 final float ratio = (float) sourceWidth / sourceHeight; in createIconBitmap()123 if (sourceWidth > sourceHeight) { in createIconBitmap()125 } else if (sourceHeight > sourceWidth) { in createIconBitmap()[all …]
103 private byte[] createJpegRawData(int sourceWidth, int sourceHeight) throws IOException { in createJpegRawData() argument104 return createRawData(Bitmap.CompressFormat.JPEG, sourceWidth, sourceHeight); in createJpegRawData()107 private byte[] createPngRawData(int sourceWidth, int sourceHeight) throws IOException { in createPngRawData() argument108 return createRawData(Bitmap.CompressFormat.PNG, sourceWidth, sourceHeight); in createPngRawData()112 int sourceHeight) throws IOException { in createRawData() argument114 Bitmap b = Bitmap.createBitmap(sourceWidth, sourceHeight, Bitmap.Config.ARGB_8888); in createRawData()