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