Searched refs:optimalSize (Results 1 – 2 of 2) sorted by relevance
133 Size optimalSize = calculateOptimalSize(width, height); in fromDrawable() local134 Bitmap bitmap = Bitmap.createBitmap(optimalSize.getWidth(), optimalSize.getHeight(), in fromDrawable()163 Size optimalSize = calculateOptimalSize(bitmap.getWidth(), bitmap.getHeight()); in fromBitmap() local164 bitmap = Bitmap.createScaledBitmap(bitmap, optimalSize.getWidth(), in fromBitmap()165 optimalSize.getHeight(), true /* filter */); in fromBitmap()
263 Size optimalSize = chooseBigEnoughSize(267 Log.i(TAG, "Preview size: " + optimalSize);269 surfaceHolder.setFixedSize(optimalSize.getWidth(),270 optimalSize.getHeight());