¿He leído muchos mensajes allí? Pero no encuentro la respuesta correcta.Cómo rotar la imagen desde "onPictureTaken" sin falta de memoria ¿Excepción?
Intento hacer algo esto:
@Override
public void onPictureTaken(byte[] paramArrayOfByte, Camera paramCamera) {
try {
Bitmap bitmap = BitmapFactory.decodeByteArray(paramArrayOfByte, 0,
paramArrayOfByte.length);
int width = bitmap.getWidth();
int height = bitmap.getHeight();
FileOutputStream os = new ileOutputStream(Singleton.mPushFilePath);
Matrix matrix = new Matrix();
matrix.postRotate(90);
Bitmap resizedBitmap = Bitmap.createBitmap(bitmap, 0, 0, width,
height, matrix, false);
resizedBitmap.compress(Bitmap.CompressFormat.JPEG, 95, os);
os.close();
...
¿Hay una manera de girar la imagen, sin necesidad de utilizar BitmapFactory? ¡Quiero rotar la imagen sin pérdida de calidad!
hay una buena solución aquí: http: //stackoverflow.com/questions/2225363/c-sharp-rotate-bitmap-90-degrees – paul
Fue genial, pero ¿C#? –
lo siento, ¡no leí las etiquetas! – paul