0

1.myJpegFile = new File("images/jpegImage.jpg");
2.output = new BufferedOutputStream(new FileOutputStream(myJpegFile));
3.encoder = JPEGCodec.createJPEGEncoder(output);
4.encoder.encode(myJpegImage);

Please could you give me the equivalent code for line no. 3 and 4 in Android?

Jonathan Leffler
  • 730,956
  • 141
  • 904
  • 1,278
user373885
  • 363
  • 1
  • 3
  • 6

1 Answers1

0

bitmap.compress(CompressFormat.JPEG, 100, output);

Fedor
  • 43,261
  • 10
  • 79
  • 89