0

Is there anyway I can read pixel by pixel a jpeg without taking the whole Image into memory? I have been searching this for a long time.Thanking you in advance for your valuable advice.

Sreekanth Karumanaghat
  • 3,383
  • 6
  • 44
  • 72
  • 1
    what you want to do exactly ? – Chirag Jul 16 '12 at 06:16
  • I am writing a program to convert a large image into b/w(and similar operations),so I want to convert an image (of size say 16MB) into b/w..I cant read the entire image into memory as android memory is limited.So all I can do is to load the image Pixel by Pixel and manipulate those pixels and add the pixels to a new File – Sreekanth Karumanaghat Jul 16 '12 at 06:21

1 Answers1

0

You can't, because jpeg image data isn't written pixel by pixel in the jpeg file format. But as far as I remember, jpeg encodes blocks of 8x8 pixels, so you might hold on to that...

medonja
  • 308
  • 3
  • 15