I\'m trying to open .ppm images (Portable pixm开发者_如何学Pythonaps) in Android.I\'ve deciphered the format enough to create this:
I\'m trying to parse through a ppm file, but first need to verify if the header info i开发者_如何转开发s correct. A ppm file may have the following formats:
How exactly does GIMP convert a jpg into a ppm? I\'m trying to convert a jpg to a ppm on Android. In Android I use the API to create an ARGB_8888 Bitmap of the jpg then drop the Alpha channel and thro
maybe the title is not very clear, let me elaborate. I have a python script that open a ppm file , apply a chosen filter(rotations...) and create a new picture. until here everything work fine.
I need a way I can read the lines and extract the pixel info into some structure so I can use the putpixel function to create an image based on the ppm p3 file.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
I\'ve found a PPM image with the header starting with PF (instead of standard P6, P5, P4, ... signatures).