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